[wp-trac] [WordPress Trac] #22597: Image Editor checking GD directly for rotate support

WordPress Trac noreply at wordpress.org
Tue Nov 27 02:24:28 UTC 2012


#22597: Image Editor checking GD directly for rotate support
--------------------------+--------------------
 Reporter:  DH-Shredder   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by DH-Shredder):

 As a second option,  [attachment:22597.4.diff​  22597.4.diff​] also passes
 mime_type through to check for support.

 This requires pulling the mime from the post, though.

 It is more accurate, however, since you could get in a situation where
 rotate() is supported by an editor, but the mime type is not (for
 instance, in the case of a GD install that is sadly lacking of
 imagerotate() along with a really old Imagick install lacking
 setIteratorIndex() when trying to rotate a GIF.

 Related: #22543

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22597#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list