Repository navigation
Releases
Releases · riiicil/rj-auto-metadata
v4.0.0
[4.0.0] - 2026-12-04
Added
- Hardened Electron + Zero-Build Vanilla ESM + FastAPI Desktop Architecture: Rebuilt the application on Electron
45.6.1(sandbox: true,contextIsolation: true,app://rjam/custom protocol, offline CSP with bundledInter,JetBrains Mono, andPlus Jakarta Sansfonts, per-launchX-Bridge-Tokenauthentication, OSsafeStoragekey encryption, and clean9sgraceful teardown withtaskkill /T /Ffallback), paired with a Zero-Build Vanilla HTML/@layerCSS/ESM UI styled with Raycast Dark Precision and a local FastAPI + SQLModel/SQLite WAL backend (%LOCALAPPDATA%\.rjautometadata\). - 5-Route Studio Interface:
- Workspace (
Ctrl+1): Multi-source file/folder staging, List/Grid lazy560pxthumbnails, live WebSocketpipeline_steprow updates without DOM/animation flicker, collapsible debounced-autosave Inspector (Output Setting,AI Engine,Prompt & Length Bounds,Pipeline & Concurrency,CSV Settings), post-runRetry Failedrecovery, and completion popups with offline Web Audio chime. - Results (
Ctrl+2): Gallery and inline CSV table views (Gallery | CSV), synced job selector with inline delete,Sort by/ media / status filters, Single-Item and Multi-Select Bulk Metadata Editors preserving manual stock/Editorial keywords, verbatim manual EXIF re-embed, and per-platformNeeds Re-exportstatus cards. - Logs (
Ctrl+3): Persisted SQLitejob_logs+ real-time WebSocket session stream synced to Results job selection with severity filtering (ALL,INFO,WARNING,ERROR) and secret redaction. - Settings (
Ctrl+4) & About (Ctrl+5): Single-scroll vision media prep defaults, on-demand external CLI dependency downloader (ExifTool,Ghostscript,FFmpeg),Maintenance & Reset(Open Logs Folder,Reset Settings,Factory Reset), keyboard shortcuts, and secret-freeCopy System Info.
- Workspace (
- Universal Async AI Vision Gateway: Replaced per-provider modules with a single async
httpxclient across 6 canonical presets (Gemini,OpenAI,OpenRouter,KoboiLLM,Aivene, and SSRF-guardedCustom), dynamic/modelsfetching with 4-tier vision catalog filtering andShow all, zero hardcoded fallback model IDs (MODEL_SELECTION_REQUIRED), multi-keyRetry-Aftercooldown rotation + dead-key failover (401/402/403), HTTP400parameter self-healing,AI Guidance, opt-inAuto-Detect Mature / Nudity, andEditorial Contentpreflight validation. - Single-Pass Media Prep & Persistent Thumbnail Cache: Upgraded vision preprocessing to
1024px / q82single-pass across 22 supported formats (adding.psdcomposite support alongside.jpg,.jpeg,.png,.tiff,.tif,.svg,.eps,.ai, and 13 video/motion formats), replaced CairoSVG/GTK3 with self-contained offlineresvg-pySVG rasterization, enforced Ghostscript-dSAFER --, and added a persistent560pxJPEG thumbnail cache with bounded LRU eviction. - Declarative ExifTool Embedder & 6-Platform CSV Exporter: Built format-aware EXIF/IPTC/XMP profiles with persistent
-stay_openworker execution, magic-byte mismatch detection,-mminor-error retry, opt-in PNG XMP embedding, default<Output Folder>/output_csv/exports for Adobe Stock, Shutterstock (canonicalArts& editorial datelines), 123RF (per-item country), Vecteezy (7 compatible formats, 6-column physical export), Depositphotos (5-column schema), and Miri Canvas (Videoauto-detect), plus WindowsHTTP 423file-lock detection. - On-Demand Tools, Release Pipeline & CI: Added SHA-256-pinned on-demand downloads for
ExifTool,Ghostscript, andFFmpeginto%LOCALAPPDATA%\.rjautometadata\tools\, single-source SemVer sync (scripts/sync_version.py), locked Python dependencies (backend/uv.lock), automatedTHIRD_PARTY_LICENSES.mdbundled inextraResources,.github/workflows/ci.yml,scripts/check.ps1,scripts/build.ps1, andscripts/cdp_smoke.mjs.
Changed
- License Transition to MIT: Transitioned active v4 development and distribution licensing from AGPL-3.0 to the MIT License (
LICENSE,package.json,electron/package.json), made possible by removing bundled external GPL/AGPL CLI binaries. - Version & Runtime Consolidation: Synchronized workspace, Electron, and FastAPI backend manifests to
4.0.0, consolidated app data, logs, cache, and tools under%LOCALAPPDATA%\.rjautometadata\, and unifiedsafeStoragemaster-key handling with fail-closed secret storage and system warning banners. - Backend Scalability & Reliability: Optimized job rollups with SQL
GROUP BYaggregations, persistedJobItem.size_bytes, pooled batchhttpx.AsyncClientconnections, offloaded SSRF DNS checks to worker threads, bounded WebSocket subscriber queues (1000), and isolated item-fatal errors (MODEL_REFUSAL,IMAGE_NOT_FOUND,UNSUPPORTED_IMAGE_FORMAT) from batch-wide circuit breaking.
Fixed
- Non-Destructive File Safety & Data Loss Prevention: Replaced unconditional source deletion with non-destructive output copying by default; opt-in
Move / Delete Source Originalsnow prompts for explicit confirmation, verifies per-item on-disk CSV export membership before unlinking, and aborts cleanup during Force Stop. - Metadata & CSV Integrity: Preserved manual stock/Editorial keywords and multi-word phrases across edits, EXIF re-embedding, and CSV exports; decoupled manual EXIF re-embedding from global
inject_keywordsdrift; fixed Vecteezy 6-column physical export, ShutterstockArtsnaming, Results 5-key sorting, Bulk PNG EXIF gating, and modal focus/listener cleanup.
Removed
- Retired the legacy v3.12.3 CustomTkinter monolith (
src/,main.py,requirements.txt,setup.iss), bundled ExifTool/Ghostscript/FFmpeg/GTK3 installers, cloud GA4 telemetry, removed AI providers (Groq,Mistral,Blackbox,iLabs), and legacy v3config.jsonauto-import.
Notes
- MIT License Transition: Historical v3.12.3 AGPL-3.0 source and legacy documentation remain preserved read-only on the
legacygit branch (4c9d519). - Fresh v4 Configuration: v4 introduces a fresh SQLite database and OS
safeStoragekey store under%LOCALAPPDATA%\.rjautometadata\; configure AI keys, models, and optional external CLI tools directly in the v4 UI. - Windows SmartScreen (Unsigned Installer): This installer is currently unsigned, so Windows Defender SmartScreen may show an "Unknown publisher" warning on first run. Verify the checksum below, then choose More info -> Run anyway.
Verification & Security
- File:
setup.exe(insidev4.0.0.zip) - SHA-256:
e1a7e1b9beafc7f2055a0bdc705fb0ea77b44be4682d27d6dee02159d07490a3 - VirusTotal: 0/65 detections
Verify the checksum on Windows (PowerShell):
Get-FileHash .\setup.exe -Algorithm SHA256v3.12.3
[3.12.3] - 2026-06-07
Added
- iLabs Provider: Integrated support for iLabs as a new OpenAI-compatible AI gateway provider, mapping its completions endpoint (
https://api.thisilabs.com/v1) and default models.
Fixed
- Keyword Space-Stripping: Resolved a bug in the metadata keyword-filling pipeline where multi-word keywords containing spaces (e.g.,
"railway station","steam locomotive") had their spaces stripped (e.g., turning into"railwaystation"), ensuring they remain intact in both the EXIF embedding and CSV export outputs.
v3.12.2
[3.12.2] - 2026-05-24
Added
src/processing/error_classifier.py: New dependency-free helper that maps structural config error codes (custom_provider_no_base_url,custom_provider_no_model,openrouter_no_model) to afailed_confignon-retryable pipeline status — prevents burning 5 retry rounds on user-configuration mistakes.tests/api/test_custom_provider_smoke.py: 11 smoke tests covering endpoint resolution (including query/fragment preservation and mid-path edge cases), the threadedbase_url_overridepass-through, missing-base-url and missing-model guards, the dispatcher's Custom path, error-classifier demotion, and end-to-end HTTP URL routing. No network required.
Fixed
- Custom provider completely non-functional: Two root causes fixed end-to-end:
app.pynever forwarded_custom_base_url_varto the worker pipeline —batch_process_files()→process_single_file()→ all format processors now receive and passbase_url_override.openrouter_api.pywas hardcoded tohttps://openrouter.ai/api/v1/chat/completionseven when an override was supplied — replaced with_resolve_chat_endpoint()helper that builds the correct URL from the user's base URL.
- Custom provider API key check ignored Base URL:
_cek_api_keys()inapp.pynow reads_custom_base_url_varand passes it throughcheck_api_keys_status()→provider_manager→openrouter_api.check_api_keys_status(). - Missing model not caught early: Both
provider_manager.get_metadata()andopenrouter_api.get_openrouter_metadata()now return{"error": "custom_provider_no_model"}immediately when no model is selected for Custom, instead of defaulting toopenai/gpt-4.1. - OpenRouter proprietary headers leaked to Custom endpoints:
HTTP-RefererandX-Titleheaders are now skipped whenbase_url_overrideis active. - Version bumped to 3.12.2: Bumped version from 3.12.1 to 3.12.2 across
src/ui/app.py,setup.iss,AGENTS.md,README.md,CHANGELOG.md,docs/HANDOFF.md,docs/CURRENT_STATE.md.
v3.12.1
[3.12.1] - 2026-05-21
Fixed
- Mistral & Blackbox Keywords: Fixed a bug where direct Mistral and Blackbox provider requests returned keywords under the
"keywords"key instead of"tags", causing the fallback mechanism to replace them with title-derived words. - Mistral & Blackbox JSON format: Added system instructions and
response_formatJSON enforcement to prevent Markdown-wrapped responses.
v.3.12.0
[3.12.0] - 2026-05-20
Added
- Settings & Advanced Tab Layout: Replaced flat settings row with a CTkTabview containing "Settings" and "Advanced" tabs for cleaner UI organization
- Advanced Tab — Custom Instruction: Free-form text field for custom AI system instruction, persisted in config.json
- Advanced Tab — Hint: Short hint field to guide metadata generation focus, passed to prompt builder
- Advanced Tab — Inject Keywords: Keyword field that prepends user-defined terms to AI-generated keywords (deduped, respects keyword count limit)
- Advanced Tab — Title & Desc Limits: Min words and max chars fields for title and description, linked to Quality preset or editable in Custom mode
- Custom Quality Option: Added "Custom" entry to Quality dropdown — unlocks Advanced tab limit fields for free-form editing; switching back to a preset restores preset values, custom values are saved as shadow variables and persist across switches and app restarts
- Mistral Provider: New provider using OpenAI-compatible SDK (api.mistral.ai)
- Blackbox Provider: New provider using OpenAI-compatible SDK (api.blackbox.ai)
- Custom Provider: 6th provider option — user supplies any OpenAI-compatible base URL
- Dynamic Model Fetching: "Fetch" button calls GET /v1/models via OpenAI SDK; per-provider model lists cached and restored on launch
- CTkScrollableDropdown: Scrollable popup for all ComboBox dropdowns (vendored, MIT license)
- Stop Flag Centralization: src/utils/stop_flag.py — single global stop flag replacing per-provider flag copies
Changed
- Gemini API: Fully migrated from google-genai SDK and REST API to OpenAI-compatible endpoint (v1beta/openai/) using the openai SDK; removed Auto Rotation
- Prompt System: Rebuilt as dynamic function-based system with user_hint, custom_instruction, min_words_override, max_chars_override parameters; thread-local override mechanism for zero-touch integration with existing format processors
- API Load/Delete/Save buttons: Removed; replaced by single "Fetch" button for model list retrieval
- Auto Retry: Removed UI toggle; hardcoded to always enabled
- Advanced tab fields: Locked (read-only) during batch processing; restored with correct state after processing completes
- Stop mechanism: _check_thread_ended() timeout increased from 2.5s to 30s; UI reset and stop flag reset now separated to prevent premature stop-flag clearing while threads are still running
- requirements.txt: Removed unused google-genai and Flask-SQLAlchemy; added openai
Fixed
- Quality dropdown stuck on previous value: Replaced command-based CTkScrollableDropdown callback with StringVar.trace_add() — ensures dropdown display, variable, and callback stay in sync regardless of widget internals
- Custom Quality values lost on preset switch: Shadow variables (_custom_title_min, etc.) save Custom values when leaving Custom mode and restore them when returning; persisted in config.json
- Advanced tab fields not locking during processing: Fields now disabled at processing start and re-enabled with correct lock state at end
- Stop not working across providers: Each provider previously had its own independent stop flag; centralized flag now propagates stop instantly to all active worker threads
- UI reset race condition: Stop flag was being cleared before worker threads confirmed dead; now cleared only after thread join confirms completion
v.3.11.3
[3.11.3] - 2026-04-04
Added
- Gemini 3 Series Models: Added support for two new Gemini 3.x models:
gemini-3-flash-preview: Frontier-class performance rivaling larger models at a fraction of the cost.gemini-3.1-flash-lite-preview: High-volume, cost-sensitive workhorse with Gemini 3 series quality.
Changed
- Thinking Config Split: Separated thinking configuration logic for Gemini 2.5 vs Gemini 3.x models since they use incompatible parameters (mixing both causes a 400 error):
- Gemini 2.5 series → continues to use
thinking_budget(0 for Flash/Flash-Lite, -1 dynamic for Pro). - Gemini 3.x series → uses
thinking_level("minimal"for Flash-Lite, model default for Flash). Gracefully falls back if SDK version doesn't support the field yet.
- Gemini 2.5 series → continues to use
- Response Parsing Simplified: SDK requests now use
response.textas the primary text extraction method, which automatically skips thinking/signature parts and returns only the final answer. Removed the complex ~50-line "enhanced extraction" fallback block that was previously needed for thinking models. - Temperature Fix for Gemini 3: Set
temperature=1.0for all Gemini 3.x models (was0.2). Per Google's documentation, setting temperature below 1.0 on Gemini 3 models can cause looping or degraded performance.
Fixed
- SDK Compatibility: Wrapped
thinking_levelassignment intry/exceptto gracefully handle oldergoogle-genaiSDK versions that don't yet support the field, preventingValidationErrorcrashes.
v3.11.2
[3.11.2] - 2026-01-17
Added
- KoboiLLM Provider: Integrated support for the new KoboiLLM provider in the provider manager, allowing for additional model options.
- JSON Cleaning: Added a new
_clean_json_textfunction to enhance JSON parsing by removing unnecessary tags and extracting valid JSON content.
Changed
- Model Configuration: Updated maximum output tokens for various models in OpenAI and OpenRouter APIs to 5120 for improved response handling.
- Error Logging: Enhanced error logging in metadata extraction functions to include cleaned content for better debugging.
v3.11.1
[3.11.1] - 2025-12-24
Changed
- Clarified keyword prompts to demand unique, single-word, and relevant lists across providers.
Fixed
- Refined keyword extraction logic for Gemini, Groq, OpenAI, and OpenRouter to ensure uniqueness and relevance, with stronger dedup/sanitization.
- Added fallback parsing of OpenAI text responses to recover metadata when JSON is missing.
- Introduced provider_manager keyword filler to top up keywords when API returns fewer than requested.
v3.11.0
[3.11.0] - 2025-12-14
Added
- Groq Provider: Native integration with Groq API (
src/api/groq_api.py), enabling high-speed inference with specific support for Llama 4 Vision models (Scout & Maverick). - Vision Capabilities: Seamless image metadata generation using Groq's Llama 4 vision-capable models by default.
- Robust Rate Limiting: Automatic backoff and retry logic specifically tuned for Groq's rate limits (TPM/RPM), ensuring stable batch processing.
v3.10.0
[3.10.0] - 2025-10-19
Added
- OpenAI Responses provider: Native integration with OpenAI's Responses API (
src/api/openai_api.py), including model presets for GPT-5, GPT-4.1, and GPT-4o families plus reasoning controls for GPT-5 tiers. - OpenRouter provider: New OpenRouter client (
src/api/openrouter_api.py) hitting the/chat/completionsendpoint with curated presets for GPT-5/4.1, Gemini 2.5/2.0, Claude 4.5/3.7, Grok 4, and Llama 4 Maverick/Scout models. - Provider-aware manager: Extended
src/api/provider_manager.pyso the UI can switch between Gemini, OpenAI, and OpenRouter, including API key selection, metadata routing, and status checks. - Config & key storage: Persist API keys per provider, remember the last-used provider/model, and expose provider-specific model lists inside the UI dropdowns.
Changed
- UI workflow: Provider dropdown now precedes model selection; API key textbox masks and stores keys independently for each provider; workflow descriptions updated to cover multi-provider usage.
- Documentation: README now details the multi-provider architecture, provider-model catalogs, configuration changes, and OpenRouter usage guidance.
- Structured-output handling: Updated structured-output detection logic to accommodate chat-completions responses (OpenRouter) and ensure JSON parsing across all providers.
Fixed
- Hardened error logging for OpenRouter (detailed HTTP 400 diagnostics) and unified response parsing with fallbacks for JSON object, text payload, and tool-call argument formats.
- Normalized token accounting fields when switching between Responses (
usage.output_tokens) and Chat Completions (usage.completion_tokens) payloads to avoid misreported token warnings.