[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 09:00:15 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:
----------------------------+-----------------------
Changes (by hbaumhardt):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 > The first thing that happens is to reduce the image size to a max of
 2560px width or height

 This should not be happening with [ add_filter('big_image_size_threshold',
 '__return_false'); ] but it is:

 Upload: 2582KbJpgImageWithEXIFdata.jpg  2582Kb
 Result: 2582KbJpgImageWithEXIFdata-rotated.jpg 5171Kb

 Upload: 4883KbJpgImageWithEXIFdata.jpg  4883Kb
 Result: 4883KbJpgImageWithEXIFdata-rotated.jpg 6362Kb

 The files are getting LARGER rather than just being left alone as desired.

 > The second thing that happens is to rotate the image if there is EXIF
 rotation information

 (1) The images are uploaded already in the correct orientation so there
 should be no modification.
 (2) Even if they were not, there should be an over-ride to avoid this
 unwanted "logic".


 > None of these will happen if you prepare the photos for internet use
 before uploading them

 So WordPress is not able to accept image uploads direct from camera phones
 without molesting them by design ... is that in the specification ?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57975#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list