iopcab.blogg.se

Rotate image exiftool
Rotate image exiftool





rotate image exiftool

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. 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. With this fix, original images are kept untouched, and thumbnails are generated correctly. I implemented it in production for my site using a separate class that extends the load method of WP_Image_Editor_GD. I just posted a patch for this, that fixed it in my case. In addition to EXIF, it also contains IPTC and ICC Profile metadata, to test that part of my patch.Įmbedded-thumbnails-windows-explorer.png ​ ( 40.8 KB) - added by pbiron 3 years ago.Įxample of Windows Exploring using the unrotated embedded thumbnail for an image that has be rotated on uploadġ4459.4.diff ​ ( 8.5 KB) - added by azaozz 3 years ago.ġ4459.5.diff ​ ( 9.3 KB) - added by azaozz 3 years ago. Sample image with EXIF orientation tag value that requires rotation on upload. This was generated with exiftool and can be used to test that these metadata are preserved by my patch.ĬarolinaRaptorCenter_2005_0132.jpg ​ ( 93.9 KB) - added by pbiron 3 years ago. 14459.patch ​ ( 1.3 KB) - added by msaggiorato 7 years ago.ġ4459.diff ​ ( 2.4 KB) - added by wpdavis 7 years ago.ġ4459.2.diff ​ ( 2.1 KB) - added by markoheijnen 6 years ago.ġ ​ ( 1.3 KB) - added by dhuyvetter 6 years ago.ġ4459.3.diff ​ ( 10.7 KB) - added by pbiron 3 years ago.ĬarolinaRaptorCenter_2005_ ​ ( 5.0 KB) - added by pbiron 3 years ago.ĮXIF and IPTC metadata from CarolinaRaptorCenter_2005_0132.jpg.







Rotate image exiftool