mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
598125109d
## Summary - Preserve ICC profiles and EXIF metadata when resizing and re-encoding prompt images. - Retain EXIF orientation metadata without rotating or otherwise modifying the pixel data locally. - Support metadata preservation for PNG, JPEG, and WebP outputs. - Continue returning the original bytes when an image does not require re-encoding. This intentionally preserves the metadata most important for rendering prompt images faithfully. Other format-specific metadata is not copied. ## Motivation Client-side resizing previously discarded image metadata during re-encoding. This could lose color-profile information and EXIF orientation needed by downstream image consumers. #### [git stack](https://github.com/magus/git-stack-cli) - โ `1` https://github.com/openai/codex/pull/27245 - โ `2` https://github.com/openai/codex/pull/27247 - โ `3` https://github.com/openai/codex/pull/27246 - ๐ `4` https://github.com/openai/codex/pull/27266
598125109d
ยท
2026-06-10 21:17:32 -07:00
History