[wp-trac] [WordPress Trac] #20555: reserve PNG Format and Transparency for Flexible-Height and Flexible-Width Custom Headers

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 27 00:08:26 UTC 2012


#20555: reserve PNG Format and Transparency for Flexible-Height and Flexible-Width
Custom Headers
--------------------------+-----------------------------
 Reporter:  chellycat     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Appearance    |    Version:  3.4
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Normally, when a user uploads a custom header image, they are prompted to
 crop the image to their desired size if the image is not the exact
 dimensions specified by the theme. After cropping, the image is compressed
 and becomes a JPG.

 In the past, if users wanted to avoid this compression (to use a
 transparent PNG for their header image, for example), they could upload
 their header image at the exact dimensions specified by the theme.

 However, with the flexible dimensions, users are always prompted to crop.
 This means that transparent pngs are converted to JPG and lose their
 transparency in the process.

 To replicate:

 1. Switch to a theme that supports flexible header dimensions (such as
 Twenty Eleven)

 2. Go to Appearance > Header and upload a transparent png that has the
 "recommended dimensions" specified by the theme.

 3. You'll be prompted to crop the image.

 4. After cropping, observe how the image becomes a JPG and thus loses its
 transparency.

 The ideal solution would be for PNG images to remain PNGs and to preserve
 their transparency when cropped.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20555>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list