[wp-trac] [WordPress Trac] #37140: Rotating images doesn't adjust orientation for imagick

WordPress Trac noreply at wordpress.org
Mon Aug 8 12:27:44 UTC 2016


#37140: Rotating images doesn't adjust orientation for imagick
-------------------------------------------------+-------------------------
 Reporter:  triplejumper12                       |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Media                                |  Release
 Severity:  normal                               |     Version:  3.5
 Keywords:  has-patch needs-testing needs-unit-  |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by sanchothefat):

 I tested with simply setting the orientation exif data to undefined in the
 Imagick WP_Image_Editor rotation method - my thinking being if a user has
 started rotating the image there's a reason, in my user's case the
 orientation data not being used. If they see it rotated the way they want
 without any orientation data then that orientation will be consistent
 across platforms & devices.

 Worked well with an image that appeared upside down in the WP admin on
 upload but presented the right way up when viewing the image on it's own
 in a new tab.

 After rotating and removing orientation data it was then consistent
 between the WP admin, the rendered post page, image in it's own tab
 (Chrome, Safari & FF on mac) and on my iPhone too.

 I then found this ticket and the patch is exactly same code :) Works well.

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


More information about the wp-trac mailing list