[wp-trac] [WordPress Trac] #23039: WP_Image_Editor_GD does not preserve alpha if is not resized

WordPress Trac noreply at wordpress.org
Fri Dec 21 20:10:29 UTC 2012


#23039: WP_Image_Editor_GD does not preserve alpha if is not resized
--------------------------+------------------------------
 Reporter:  joehoyle      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.5
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by joehoyle):

 Ok, I can write a patch, would it be best to just pass `$this->image`
 through `imagealphablending($img, false); imagesavealpha($img, true);` on
 http://core.trac.wordpress.org/browser/trunk/wp-includes/class-wp-image-
 editor-gd.php#L91

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


More information about the wp-trac mailing list