[buddypress-trac] [BuddyPress] #5089: Avatar rotation fix for iOS

buddypress-trac noreply at wordpress.org
Mon Jul 8 22:47:01 UTC 2013

#5089: Avatar rotation fix for iOS
 Reporter:  modemlooper   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.7
 Severity:  normal        |   Keywords:  needs-testing dev-feedback
 Hey guys,

 attached is an edited bp-core-avatars.php

 It has a small addition to rotate the image correctly based on exif
 orientation data. I get asked weekely to fix this and the only way is
 editing this core file. Once an image hits WP image editor then the
 orientation data is stripped. So we need to read the raw file before and
 then add in the rotation to wp_get_image_editor.

 In function bp_core_avatar_handle_upload i added an efix variable to read
 data and then down lower before the file is saved and sized I have image

 Test file and patch it. :D

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5089>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list