[wp-trac] [WordPress Trac] #14459: Rotate Full Size Images on Upload
WordPress Trac
noreply at wordpress.org
Mon Jul 13 16:28:26 UTC 2015
#14459: Rotate Full Size Images on Upload
-------------------------------------------+-----------------------------
Reporter: mrroundhill | Owner: azaozz
Type: enhancement | Status: reviewing
Priority: normal | Milestone: Future Release
Component: Upload | Version: 3.0
Severity: normal | Resolution:
Keywords: needs-patch westi-like mobile | Focuses:
-------------------------------------------+-----------------------------
Comment (by msaggiorato):
I just posted a patch for this, that fixed it in my case.
I implemented it in production for my site using a separate class that
extends the load method of WP_Image_Editor_GD. (To avoid touching the WP
Core files)
With this fix, original images are kept untouched, and thumbnails are
generated correctly. I think the EXIF Orientation head will be lost in
thumbnails, but i don't think that's a problem, since they will be in the
correct size and orientation now.
PS: I tried several locations in the exif_read_data array, because i've
found online that the Orientation header can be present in several places.
This is the first time I post a patch, so if I did something wrong, please
let me know.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/14459#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list