You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(analysis): add filename-guided Claude analysis
Enrich Claude metadata analysis with a lightweight filename hint:
- Prefer source filename from source.originalPath for imported assets
- Fall back to managed asset slug for generated assets
- Filter placeholder names like original.jpg or asset automatically
- Append guidance at runtime, applies to bundled and custom prompts
Treat as soft hint: visible image content takes precedence if filename conflicts.
Co-Authored-By: Hagicode <noreply@hagicode.com>
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,6 +148,8 @@ Notes:
148
148
If `IMGBIN_ANALYSIS_PROMPT_PATH` is not set, ImgBin falls back to `prompts/default-analysis-prompt.txt`.
149
149
If `IMGBIN_ANALYSIS_API_MODEL` is empty, ImgBin falls back to `ANTHROPIC_MODEL`.
150
150
151
+
ImgBin also adds a runtime filename-guidance block to every Claude analysis request. Imported assets prefer the original source filename, generated assets fall back to the managed slug, and placeholder names such as `original.png` or `asset` are ignored. The filename is treated as a soft scene hint only; visible image evidence still wins when they disagree.
152
+
151
153
### General runtime
152
154
153
155
-`IMGBIN_DEFAULT_OUTPUT_DIR`: optional default output root, defaults to `./library`
This is useful after changing `IMGBIN_ANALYSIS_API_MODEL` or updating the analysis prompt.
208
210
211
+
### Filename-guided analysis
212
+
213
+
ImgBin now enriches Claude metadata analysis with a lightweight filename hint:
214
+
215
+
- imported assets prefer the source filename from `source.originalPath`,
216
+
- generated assets fall back to the managed asset slug or directory name, and
217
+
- placeholder names such as `original.jpg` or `asset` are skipped automatically.
218
+
219
+
This guidance is appended at runtime, so it applies to both the bundled default prompt and any `--analysis-prompt` override. Treat it as a soft hint: if the filename conflicts with the image itself, the visible image content should take precedence.
0 commit comments