opencodekit 0.15.21 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -7
- package/dist/template/.opencode/AGENTS.md +21 -20
- package/dist/template/.opencode/agent/build.md +88 -7
- package/dist/template/.opencode/agent/explore.md +1 -1
- package/dist/template/.opencode/agent/general.md +54 -4
- package/dist/template/.opencode/agent/looker.md +1 -1
- package/dist/template/.opencode/agent/painter.md +1 -1
- package/dist/template/.opencode/agent/plan.md +52 -0
- package/dist/template/.opencode/agent/review.md +1 -1
- package/dist/template/.opencode/agent/scout.md +3 -3
- package/dist/template/.opencode/agent/vision.md +1 -1
- package/dist/template/.opencode/command/create.md +201 -95
- package/dist/template/.opencode/command/design.md +5 -7
- package/dist/template/.opencode/command/handoff.md +7 -0
- package/dist/template/.opencode/command/init.md +25 -47
- package/dist/template/.opencode/command/plan.md +35 -16
- package/dist/template/.opencode/command/resume.md +7 -18
- package/dist/template/.opencode/command/ship.md +156 -0
- package/dist/template/.opencode/command/start.md +315 -28
- package/dist/template/.opencode/command/ui-review.md +5 -7
- package/dist/template/.opencode/command/verify.md +279 -0
- package/dist/template/.opencode/memory/_templates/README.md +57 -19
- package/dist/template/.opencode/memory/_templates/prd.md +29 -0
- package/dist/template/.opencode/memory/_templates/project/tech-stack.md +50 -0
- package/dist/template/.opencode/memory/_templates/proposal.md +38 -0
- package/dist/template/.opencode/memory/_templates/spec.md +66 -0
- package/dist/template/.opencode/memory/_templates/tasks.md +198 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-add-skills-vs-commands-to-global-agents-.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-build-agent-auto-loads-skills-contextual.md +31 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-fixed-agent-configuration-for-opencodeki.md +25 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-focused-agents-md-upgrade-for-opencode-k.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-implement-tier-1-permission-upgrades.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-instructions-config-explicit-paths-not-w.md +40 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-merged-context-into-memory-project-singl.md +42 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-oracle-tool-should-use-review-agent-not-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-agent-auto-loads-skills-contextuall.md +31 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-phased-oracle-command-merge-into-ne.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-prd-workflow-uses-prd-and-prd-task-skill.md +23 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-prefer-review-agent-via-opencode-cli-ove.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-add-ship-command-with.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-skills-vs-commands-section-from-a.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-tool-with-ship-command-fl.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-with-ship-command-workflo.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-proxypal-oracle-with-cli-review-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-dist-template-only-tech-stack.md +50 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-templates-only-tech-stack-md.md +26 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-subagents-load-minimal-skills-stay-lean.md +29 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-user-approved-permission-upgrades-in-ope.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-discovery-verify-command-already-implemented.md +28 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-feature-openspec-phase-b-complete-template-upgra.md +43 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-build-agent-should-use-dynamic-lsp-not-f.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-kimi-k2-5-model-requires-temperature-1-0.md +22 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-already-imple.md +27 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-uses-instruct.md +35 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-update-build-agent-prompt-to-use-context.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-using-opencode-expert-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-g.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-r.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-prefers-copilot-gpt-5-2-codex-mediu.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-contextu.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-reviewed.md +15 -0
- package/dist/template/.opencode/memory/project/command-rules.md +122 -0
- package/dist/template/.opencode/memory/project/tech-stack.md +50 -0
- package/dist/template/.opencode/memory/research/ccpm-analysis.md +334 -0
- package/dist/template/.opencode/memory/research/openspec-analysis.md +226 -0
- package/dist/template/.opencode/opencode.json +916 -803
- package/dist/template/.opencode/skill/tool-priority/SKILL.md +2 -2
- package/package.json +1 -1
- package/dist/template/.opencode/command/accessibility-check.md +0 -331
- package/dist/template/.opencode/command/agent-browser.md +0 -21
- package/dist/template/.opencode/command/analyze-mockup.md +0 -423
- package/dist/template/.opencode/command/analyze-project.md +0 -295
- package/dist/template/.opencode/command/brainstorm.md +0 -373
- package/dist/template/.opencode/command/cloudflare.md +0 -70
- package/dist/template/.opencode/command/commit.md +0 -245
- package/dist/template/.opencode/command/complete-next-task.md +0 -77
- package/dist/template/.opencode/command/design-audit.md +0 -480
- package/dist/template/.opencode/command/edit-image.md +0 -242
- package/dist/template/.opencode/command/finish.md +0 -255
- package/dist/template/.opencode/command/fix-ci.md +0 -109
- package/dist/template/.opencode/command/fix-types.md +0 -104
- package/dist/template/.opencode/command/fix-ui.md +0 -117
- package/dist/template/.opencode/command/fix.md +0 -168
- package/dist/template/.opencode/command/frontend-design.md +0 -21
- package/dist/template/.opencode/command/generate-diagram.md +0 -349
- package/dist/template/.opencode/command/generate-icon.md +0 -283
- package/dist/template/.opencode/command/generate-image.md +0 -246
- package/dist/template/.opencode/command/generate-pattern.md +0 -247
- package/dist/template/.opencode/command/generate-storyboard.md +0 -250
- package/dist/template/.opencode/command/implement.md +0 -609
- package/dist/template/.opencode/command/import-plan.md +0 -406
- package/dist/template/.opencode/command/index-knowledge.md +0 -25
- package/dist/template/.opencode/command/integration-test.md +0 -424
- package/dist/template/.opencode/command/issue.md +0 -102
- package/dist/template/.opencode/command/new-feature.md +0 -651
- package/dist/template/.opencode/command/opensrc.md +0 -58
- package/dist/template/.opencode/command/quick-build.md +0 -238
- package/dist/template/.opencode/command/ralph.md +0 -41
- package/dist/template/.opencode/command/research-and-implement.md +0 -148
- package/dist/template/.opencode/command/research-ui.md +0 -466
- package/dist/template/.opencode/command/restore-image.md +0 -424
- package/dist/template/.opencode/command/revert-feature.md +0 -386
- package/dist/template/.opencode/command/skill-create.md +0 -517
- package/dist/template/.opencode/command/skill-optimize.md +0 -556
- package/dist/template/.opencode/command/summarize.md +0 -412
- package/dist/template/.opencode/command/triage.md +0 -398
- package/dist/template/.opencode/memory/_templates/project/architecture.md +0 -60
- package/dist/template/.opencode/memory/_templates/project/commands.md +0 -72
- package/dist/template/.opencode/memory/_templates/project/conventions.md +0 -68
- package/dist/template/.opencode/memory/_templates/project/gotchas.md +0 -41
- package/dist/template/.opencode/skill/notebooklm/SKILL.md +0 -272
- package/dist/template/.opencode/skill/notebooklm/references/setup.md +0 -353
- package/dist/template/.opencode/tool/notebooklm.ts +0 -488
- package/dist/template/.opencode/tool/oracle.ts +0 -240
|
@@ -1,424 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Restore, enhance, upscale, or improve image quality using AI
|
|
3
|
-
argument-hint: "<image-path> [mode: enhance|upscale|restore|denoise|colorize]"
|
|
4
|
-
agent: painter
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Restore Image: $ARGUMENTS
|
|
8
|
-
|
|
9
|
-
Use AI to restore, enhance, or improve image quality.
|
|
10
|
-
|
|
11
|
-
## Phase 1: Parse Input
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
const input = "$ARGUMENTS";
|
|
15
|
-
|
|
16
|
-
const parseInput = (input: string) => {
|
|
17
|
-
const parts = input.split(" ");
|
|
18
|
-
const imagePath = parts[0];
|
|
19
|
-
const mode = parts[1] || "enhance";
|
|
20
|
-
|
|
21
|
-
const validModes = ["enhance", "upscale", "restore", "denoise", "colorize", "sharpen", "deblur"];
|
|
22
|
-
|
|
23
|
-
if (!validModes.includes(mode)) {
|
|
24
|
-
console.warn(`Unknown mode: ${mode}. Using 'enhance' as default.`);
|
|
25
|
-
return { imagePath, mode: "enhance" };
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return { imagePath, mode };
|
|
29
|
-
};
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Phase 2: Analyze Source Image
|
|
33
|
-
|
|
34
|
-
### Load and Examine
|
|
35
|
-
|
|
36
|
-
```typescript
|
|
37
|
-
read({ filePath: imagePath }); // Load image for analysis
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Quality Assessment
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
IMAGE ANALYSIS: [filename]
|
|
44
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
45
|
-
|
|
46
|
-
Format: [PNG/JPG/WEBP/etc.]
|
|
47
|
-
Dimensions: [width] × [height] px
|
|
48
|
-
File Size: [size] KB
|
|
49
|
-
Color Depth: [8/16/24/32] bit
|
|
50
|
-
Color Space: [sRGB/Adobe RGB/etc.]
|
|
51
|
-
|
|
52
|
-
QUALITY METRICS
|
|
53
|
-
───────────────
|
|
54
|
-
Overall Quality: [1-10 score]
|
|
55
|
-
Sharpness: [Low/Medium/High]
|
|
56
|
-
Noise Level: [None/Low/Medium/High]
|
|
57
|
-
Compression: [None/Low/Medium/Heavy]
|
|
58
|
-
Dynamic Range: [Narrow/Normal/Wide]
|
|
59
|
-
|
|
60
|
-
DETECTED ISSUES
|
|
61
|
-
───────────────
|
|
62
|
-
[✓/✗] JPEG artifacts
|
|
63
|
-
[✓/✗] Noise (ISO grain)
|
|
64
|
-
[✓/✗] Motion blur
|
|
65
|
-
[✓/✗] Low resolution
|
|
66
|
-
[✓/✗] Color degradation
|
|
67
|
-
[✓/✗] Overexposure/Underexposure
|
|
68
|
-
[✓/✗] Scratches/Damage (for old photos)
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## Phase 3: Select Restoration Mode
|
|
72
|
-
|
|
73
|
-
### Mode Capabilities
|
|
74
|
-
|
|
75
|
-
```
|
|
76
|
-
┌─────────────────────────────────────────────────────────────────────────┐
|
|
77
|
-
│ RESTORATION MODES │
|
|
78
|
-
├─────────────────────────────────────────────────────────────────────────┤
|
|
79
|
-
│ │
|
|
80
|
-
│ ENHANCE │
|
|
81
|
-
│ ├── Improves overall quality │
|
|
82
|
-
│ ├── Adjusts brightness, contrast, saturation │
|
|
83
|
-
│ ├── Sharpens details │
|
|
84
|
-
│ └── Best for: Photos that need general improvement │
|
|
85
|
-
│ │
|
|
86
|
-
│ UPSCALE │
|
|
87
|
-
│ ├── Increases resolution (2x or 4x) │
|
|
88
|
-
│ ├── Preserves details using AI │
|
|
89
|
-
│ ├── Adds realistic detail in enlargement │
|
|
90
|
-
│ └── Best for: Small images that need to be larger │
|
|
91
|
-
│ │
|
|
92
|
-
│ RESTORE │
|
|
93
|
-
│ ├── Removes artifacts and damage │
|
|
94
|
-
│ ├── Fixes compression issues │
|
|
95
|
-
│ ├── Repairs scratches and tears │
|
|
96
|
-
│ └── Best for: Old or damaged photos │
|
|
97
|
-
│ │
|
|
98
|
-
│ DENOISE │
|
|
99
|
-
│ ├── Removes noise while preserving detail │
|
|
100
|
-
│ ├── Handles ISO grain and sensor noise │
|
|
101
|
-
│ ├── Smooths backgrounds while keeping edges │
|
|
102
|
-
│ └── Best for: Low-light or high-ISO photos │
|
|
103
|
-
│ │
|
|
104
|
-
│ COLORIZE │
|
|
105
|
-
│ ├── Adds realistic color to B&W images │
|
|
106
|
-
│ ├── Uses AI to predict appropriate colors │
|
|
107
|
-
│ ├── Preserves original detail and texture │
|
|
108
|
-
│ └── Best for: Historical or B&W photos │
|
|
109
|
-
│ │
|
|
110
|
-
│ SHARPEN │
|
|
111
|
-
│ ├── Enhances edge definition │
|
|
112
|
-
│ ├── Brings out fine details │
|
|
113
|
-
│ ├── Avoids over-sharpening halos │
|
|
114
|
-
│ └── Best for: Slightly soft images │
|
|
115
|
-
│ │
|
|
116
|
-
│ DEBLUR │
|
|
117
|
-
│ ├── Removes motion blur │
|
|
118
|
-
│ ├── Corrects camera shake │
|
|
119
|
-
│ ├── Recovers lost detail │
|
|
120
|
-
│ └── Best for: Blurry photos from movement │
|
|
121
|
-
│ │
|
|
122
|
-
└─────────────────────────────────────────────────────────────────────────┘
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
### Auto-Mode Selection
|
|
126
|
-
|
|
127
|
-
If mode not specified or set to "auto":
|
|
128
|
-
|
|
129
|
-
```typescript
|
|
130
|
-
const suggestMode = (analysis: ImageAnalysis) => {
|
|
131
|
-
if (analysis.hasJpegArtifacts || analysis.hasDamage) return "restore";
|
|
132
|
-
if (analysis.noiseLevel === "high") return "denoise";
|
|
133
|
-
if (analysis.isBlurry) return "deblur";
|
|
134
|
-
if (analysis.isSmall && analysis.needsEnlargement) return "upscale";
|
|
135
|
-
if (analysis.isBlackAndWhite) return "colorize";
|
|
136
|
-
if (analysis.isSoft) return "sharpen";
|
|
137
|
-
return "enhance"; // Default
|
|
138
|
-
};
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
## Phase 4: Apply Restoration
|
|
142
|
-
|
|
143
|
-
### Restoration Parameters
|
|
144
|
-
|
|
145
|
-
```typescript
|
|
146
|
-
const restorationParams = {
|
|
147
|
-
enhance: {
|
|
148
|
-
sharpness: 1.2, // Slight sharpening
|
|
149
|
-
contrast: 1.1, // Slight contrast boost
|
|
150
|
-
saturation: 1.05, // Subtle saturation
|
|
151
|
-
clarity: 1.15, // Midtone contrast
|
|
152
|
-
},
|
|
153
|
-
upscale: {
|
|
154
|
-
factor: 2, // 2x or 4x
|
|
155
|
-
model: "real-esrgan", // AI upscaling model
|
|
156
|
-
denoise: 0.3, // Light denoising
|
|
157
|
-
},
|
|
158
|
-
restore: {
|
|
159
|
-
removeArtifacts: true,
|
|
160
|
-
repairDamage: true,
|
|
161
|
-
enhanceColors: true,
|
|
162
|
-
},
|
|
163
|
-
denoise: {
|
|
164
|
-
strength: 0.5, // 0-1, higher = more aggressive
|
|
165
|
-
preserveDetail: true,
|
|
166
|
-
},
|
|
167
|
-
colorize: {
|
|
168
|
-
saturation: 0.8, // Avoid over-saturation
|
|
169
|
-
style: "natural", // natural, vivid, vintage
|
|
170
|
-
},
|
|
171
|
-
};
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
### Execute Restoration
|
|
175
|
-
|
|
176
|
-
```
|
|
177
|
-
APPLYING RESTORATION
|
|
178
|
-
━━━━━━━━━━━━━━━━━━━━
|
|
179
|
-
|
|
180
|
-
Mode: [selected mode]
|
|
181
|
-
Input: [original filename]
|
|
182
|
-
|
|
183
|
-
Processing Steps:
|
|
184
|
-
[1/4] Analyzing image content...
|
|
185
|
-
[2/4] Applying AI restoration...
|
|
186
|
-
[3/4] Optimizing output...
|
|
187
|
-
[4/4] Saving result...
|
|
188
|
-
|
|
189
|
-
⏳ Estimated time: [X seconds]
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
## Phase 5: Output and Comparison
|
|
193
|
-
|
|
194
|
-
### Save Restored Image
|
|
195
|
-
|
|
196
|
-
```typescript
|
|
197
|
-
const outputPath = `.opencode/memory/design/restored/${filename}-${mode}-${timestamp}.png`;
|
|
198
|
-
|
|
199
|
-
write({
|
|
200
|
-
filePath: outputPath,
|
|
201
|
-
content: restoredImageData,
|
|
202
|
-
});
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
### Generate Comparison
|
|
206
|
-
|
|
207
|
-
```
|
|
208
|
-
RESTORATION COMPLETE
|
|
209
|
-
━━━━━━━━━━━━━━━━━━━━
|
|
210
|
-
|
|
211
|
-
Before After
|
|
212
|
-
────────────────────────────────────────────
|
|
213
|
-
Dimensions 800×600 1600×1200
|
|
214
|
-
File Size 45 KB 189 KB
|
|
215
|
-
Sharpness Low High
|
|
216
|
-
Noise Level High Low
|
|
217
|
-
Quality Score 4/10 8/10
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
CHANGES APPLIED
|
|
221
|
-
───────────────
|
|
222
|
-
✓ Resolution increased 2x
|
|
223
|
-
✓ Noise reduced by ~70%
|
|
224
|
-
✓ Sharpness enhanced
|
|
225
|
-
✓ JPEG artifacts removed
|
|
226
|
-
✓ Color vibrancy improved
|
|
227
|
-
|
|
228
|
-
OUTPUT
|
|
229
|
-
──────
|
|
230
|
-
Path: [outputPath]
|
|
231
|
-
Format: PNG (lossless)
|
|
232
|
-
|
|
233
|
-
Preview: [Image displayed if in vision-capable context]
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
## Phase 6: Version Management
|
|
237
|
-
|
|
238
|
-
### Track Restoration History
|
|
239
|
-
|
|
240
|
-
```typescript
|
|
241
|
-
const historyEntry = {
|
|
242
|
-
original: imagePath,
|
|
243
|
-
restored: outputPath,
|
|
244
|
-
mode: mode,
|
|
245
|
-
timestamp: new Date().toISOString(),
|
|
246
|
-
parameters: restorationParams[mode],
|
|
247
|
-
qualityBefore: analysis.overallScore,
|
|
248
|
-
qualityAfter: restoredAnalysis.overallScore,
|
|
249
|
-
};
|
|
250
|
-
|
|
251
|
-
// Append to history
|
|
252
|
-
const historyPath = `.opencode/memory/design/restored/history.json`;
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
### History Format
|
|
256
|
-
|
|
257
|
-
```json
|
|
258
|
-
{
|
|
259
|
-
"restorations": [
|
|
260
|
-
{
|
|
261
|
-
"id": "restore-001",
|
|
262
|
-
"original": "photos/old-family.jpg",
|
|
263
|
-
"outputs": [
|
|
264
|
-
{
|
|
265
|
-
"mode": "restore",
|
|
266
|
-
"path": "restored/old-family-restore-1.png",
|
|
267
|
-
"timestamp": "2024-01-15T10:30:00Z"
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"mode": "colorize",
|
|
271
|
-
"path": "restored/old-family-colorize-1.png",
|
|
272
|
-
"timestamp": "2024-01-15T10:35:00Z"
|
|
273
|
-
}
|
|
274
|
-
]
|
|
275
|
-
}
|
|
276
|
-
]
|
|
277
|
-
}
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
## Examples
|
|
281
|
-
|
|
282
|
-
```bash
|
|
283
|
-
/restore-image photo.jpg # Auto-detect best mode
|
|
284
|
-
/restore-image photo.jpg enhance # General enhancement
|
|
285
|
-
/restore-image photo.jpg upscale # 2x resolution increase
|
|
286
|
-
/restore-image old-photo.jpg restore # Fix damage and artifacts
|
|
287
|
-
/restore-image noisy.jpg denoise # Remove noise
|
|
288
|
-
/restore-image bw-photo.jpg colorize # Add color to B&W
|
|
289
|
-
/restore-image soft.jpg sharpen # Increase sharpness
|
|
290
|
-
/restore-image blurry.jpg deblur # Remove motion blur
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
## Batch Processing
|
|
294
|
-
|
|
295
|
-
For multiple images:
|
|
296
|
-
|
|
297
|
-
```bash
|
|
298
|
-
/restore-image "photos/*.jpg" enhance
|
|
299
|
-
```
|
|
300
|
-
|
|
301
|
-
```
|
|
302
|
-
BATCH RESTORATION
|
|
303
|
-
━━━━━━━━━━━━━━━━━
|
|
304
|
-
|
|
305
|
-
Found: 12 images
|
|
306
|
-
Mode: enhance
|
|
307
|
-
|
|
308
|
-
Progress:
|
|
309
|
-
[████████░░░░░░░░░░░░] 8/12
|
|
310
|
-
|
|
311
|
-
Results:
|
|
312
|
-
✓ photo-001.jpg → enhanced (6/10 → 8/10)
|
|
313
|
-
✓ photo-002.jpg → enhanced (5/10 → 7/10)
|
|
314
|
-
✓ photo-003.jpg → enhanced (4/10 → 8/10)
|
|
315
|
-
⚠ photo-004.jpg → skipped (already high quality)
|
|
316
|
-
...
|
|
317
|
-
|
|
318
|
-
Summary:
|
|
319
|
-
- Processed: 11/12
|
|
320
|
-
- Skipped: 1 (already optimized)
|
|
321
|
-
- Avg improvement: +2.3 quality points
|
|
322
|
-
```
|
|
323
|
-
|
|
324
|
-
## Quality Presets
|
|
325
|
-
|
|
326
|
-
### Conservative (preserve original character)
|
|
327
|
-
|
|
328
|
-
```typescript
|
|
329
|
-
{
|
|
330
|
-
sharpness: 1.05,
|
|
331
|
-
denoise: 0.2,
|
|
332
|
-
preserveGrain: true
|
|
333
|
-
}
|
|
334
|
-
```
|
|
335
|
-
|
|
336
|
-
### Balanced (recommended default)
|
|
337
|
-
|
|
338
|
-
```typescript
|
|
339
|
-
{
|
|
340
|
-
sharpness: 1.2,
|
|
341
|
-
denoise: 0.4,
|
|
342
|
-
preserveGrain: false
|
|
343
|
-
}
|
|
344
|
-
```
|
|
345
|
-
|
|
346
|
-
### Aggressive (maximum enhancement)
|
|
347
|
-
|
|
348
|
-
```typescript
|
|
349
|
-
{
|
|
350
|
-
sharpness: 1.5,
|
|
351
|
-
denoise: 0.7,
|
|
352
|
-
contrast: 1.2
|
|
353
|
-
}
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
## Error Handling
|
|
357
|
-
|
|
358
|
-
```
|
|
359
|
-
[If unsupported format:]
|
|
360
|
-
ERROR: Format not supported: .tiff
|
|
361
|
-
|
|
362
|
-
Supported formats:
|
|
363
|
-
- JPEG (.jpg, .jpeg)
|
|
364
|
-
- PNG (.png)
|
|
365
|
-
- WebP (.webp)
|
|
366
|
-
- BMP (.bmp)
|
|
367
|
-
|
|
368
|
-
Convert first: /edit-image photo.tiff --convert png
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
[If image too large:]
|
|
372
|
-
WARNING: Image is very large (8000×6000)
|
|
373
|
-
|
|
374
|
-
Options:
|
|
375
|
-
1. Process at reduced size (faster, ~30 sec)
|
|
376
|
-
2. Process at full size (slower, ~2 min)
|
|
377
|
-
3. Cancel
|
|
378
|
-
|
|
379
|
-
[If restoration fails:]
|
|
380
|
-
ERROR: Restoration failed
|
|
381
|
-
|
|
382
|
-
Possible causes:
|
|
383
|
-
- Image is corrupted
|
|
384
|
-
- Insufficient contrast for analysis
|
|
385
|
-
- Format incompatibility
|
|
386
|
-
|
|
387
|
-
Try:
|
|
388
|
-
- Different mode: /restore-image photo.jpg restore
|
|
389
|
-
- Manual enhancement: /edit-image photo.jpg
|
|
390
|
-
```
|
|
391
|
-
|
|
392
|
-
## Output Options
|
|
393
|
-
|
|
394
|
-
### Format Selection
|
|
395
|
-
|
|
396
|
-
```bash
|
|
397
|
-
/restore-image photo.jpg enhance --format webp # Output as WebP
|
|
398
|
-
/restore-image photo.jpg upscale --format png # Output as PNG (lossless)
|
|
399
|
-
```
|
|
400
|
-
|
|
401
|
-
### Quality Settings
|
|
402
|
-
|
|
403
|
-
```bash
|
|
404
|
-
/restore-image photo.jpg enhance --quality 90 # JPEG quality 90%
|
|
405
|
-
/restore-image photo.jpg upscale --factor 4 # 4x upscale
|
|
406
|
-
```
|
|
407
|
-
|
|
408
|
-
## Limitations
|
|
409
|
-
|
|
410
|
-
```
|
|
411
|
-
CURRENT LIMITATIONS
|
|
412
|
-
━━━━━━━━━━━━━━━━━━━
|
|
413
|
-
|
|
414
|
-
- Maximum input size: 4096×4096 px
|
|
415
|
-
- Maximum upscale: 4x
|
|
416
|
-
- Colorization may not match historical accuracy
|
|
417
|
-
- Heavy blur may not be fully recoverable
|
|
418
|
-
- Severely damaged images may need manual editing
|
|
419
|
-
|
|
420
|
-
For best results:
|
|
421
|
-
- Start with highest quality source available
|
|
422
|
-
- Use mode matching the specific issue
|
|
423
|
-
- Review output and iterate if needed
|
|
424
|
-
```
|