[wp-trac] [WordPress Trac] #57975: Uploading iPhone JPG images with EXIF data causes unwanted file modifications.
WordPress Trac
noreply at wordpress.org
Fri Mar 24 10:42:56 UTC 2023
#57975: Uploading iPhone JPG images with EXIF data causes unwanted file
modifications.
----------------------------+-----------------------
Reporter: hbaumhardt | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Filesystem API | Version: 6.1.1
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+-----------------------
Comment (by hbaumhardt):
Additional information:
(1) Using the default GD Library all native wordpress image resizing
disabled.
(2) Uploading EXIF tagged JPG images of any size or orientation from Apple
or Android devices works PERFECTLY with no image changes or manipulation
by wordpress. Raw image files are preserved intact with metadata AS
DESIRED. No additional ImageMagic libraries required thankyou.
(3) Except SOME (not all) portrait orientend images are converted to the
*-rotated.jpg format which inflates the file size and strips metadata.
Affected images can originate from Apple or Android devices.
Affected images can be uploaded to WordPress direct from originating
device or via PC browser.
Affected images can be of any size tested 10Kb to 10Mb
Affected images all have EXIF Orientation metadata [Rotate 270 degrees]
So it looks like the GD Library is acting on the Orientation metadata to
refactor the image totally unnecessarily as the images start in the
correct orientation.
If this is infact by design an ingore filter option is required to work
around the issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57975#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list