ZIm/crates/eval/examples/exif_rotation_support/prompt.md
2025-04-15 16:52:08 +00:00

899 B
Raw Blame History

I'd like to implement support for automatic image orientation correction based on EXIF metadata in our Rust project. Specifically, I want to use the nom-exif crate to read EXIF orientation tags and adjust the image accordingly (e.g., flip horizontally, rotate 90° CW, etc.) when loading it in get_dynamic_image_from_path. Please integrate the EXIF parsing flow using MediaParser, ExifIter, and match the orientation codes 18 to a custom ExifOrientation enum. Ensure that these transformations are applied directly to the DynamicImage output when applicable. Also, bump the CACHE_IMAGE_VERSION to invalidate any outdated cached formats and update the Rust version across the codebase to 1.80.0 to support the latest dependencies. Make any required changes to Cargo.toml and lockfiles, and default the GUI to open the Duplicate Files tab instead of Similar Images for consistency.