Skip to content

feat: added ability to preserve exif metadata, fixed a quality slider… - #14

Merged
CodeDead merged 1 commit into
developmentfrom
feature/preserve-exif-metadata
Mar 28, 2026
Merged

feat: added ability to preserve exif metadata, fixed a quality slider…#14
CodeDead merged 1 commit into
developmentfrom
feature/preserve-exif-metadata

Conversation

@CodeDead

Copy link
Copy Markdown
Owner

… display issue

@CodeDead
CodeDead requested a review from Copilot March 28, 2026 01:27
@CodeDead CodeDead self-assigned this Mar 28, 2026
@CodeDead CodeDead added the enhancement New feature or request label Mar 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an option to preserve EXIF metadata during image compression and fixes the JPEG quality slider value display, wiring the new setting through the UI → settings persistence → compression pipeline.

Changes:

  • Add “Preserve EXIF data” setting (UI toggle, persisted in config.json, and passed into compression).
  • Implement EXIF extraction/re-injection for supported output formats using img-parts.
  • Fix quality slider to reflect the current JPEG quality value (instead of always starting at 100).

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/views/settings_view.rs Adds the new “Preserve EXIF data” checkbox to Settings UI.
src/views/main_view.rs Fixes initial quality slider value to use state.quality for JPEG.
src/services/image_service.rs Extracts EXIF from source and re-injects into output via img-parts.
src/models/language.rs Adds localized string key for the new setting label.
src/components/settings.rs Adds preserve_exif to persisted settings with default value.
src/components/app.rs Wires new toggle message + passes preserve_exif into compression task; adjusts settings window height.
languages/*.json Adds preserveExifData translations for all embedded languages.
README.md Documents metadata preservation feature and new dependency.
Cargo.toml Adds img-parts dependency; bumps rust-version.
Cargo.lock Locks img-parts and transitive dependency updates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/services/image_service.rs
Comment thread src/components/settings.rs
@CodeDead
CodeDead merged commit 5f4a04b into development Mar 28, 2026
1 check passed
@CodeDead
CodeDead deleted the feature/preserve-exif-metadata branch March 28, 2026 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants