[wp-trac] Re: [WordPress Trac] #7039: Thumbnails won't create with 8bpp JPEG

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 29 01:26:00 GMT 2008

#7039: Thumbnails won't create with 8bpp JPEG
 Reporter:  cannonball_  |        Owner:  anonymous
     Type:  defect       |       Status:  reopened 
 Priority:  low          |    Milestone:  2.6      
Component:  General      |      Version:  2.5.1    
 Severity:  normal       |   Resolution:           
 Keywords:  needs-patch  |  
Changes (by DD32):

  * status:  closed => reopened
  * resolution:  worksforme =>
  * milestone:  => 2.6


 Problem persists.

 Env: Windows XP SP2 + Apache2.2 + PHP 5.2.4 + GD 2.0.34

 Browser/OS makes no difference in this case, As its entirely server-side

 Steps to reproduce:
  1. Upload attached file 001.jpg
  1. File will be crunched as normal, uploaded, and will appear fine
  1. Thumbnail is not created, The thumbnail on the media page will be the
 fullsize 001.jpg '''rescaled via the img height= and width= attributes'''
  1. Insert the image into a post via the thumbnail selection, The code
 inserted will be the fullsize image: [[BR]]
 <a href="http://localhost/wordpress-trunk-clean/wp-
 <img class="alignnone size-thumbnail wp-image-7" title="001"
 content/uploads/2008/06/001.jpg" alt="" />

 If you were to insert a gallery with that image in it, The thumbnail would
 not exist, and as such, the original image will be shown in the gallery,
 At its original resolution (Which can be 1200pixels wide with some that
 i've come accross)

 Some older software has issues with mono jpegs & cmyk jpegs, and would
 probably produce a blank image. In this case though, Its not an

  * http://wordpress.org/support/topic/174062

 Apply attached patch, Follow through with the above steps, insert a
 thumbnail, and recieve the correct code:
 <a href="http://localhost/wordpress-trunk-clean/wp-
 <img src="http://localhost/wordpress-trunk-clean/wp-
 content/uploads/2008/06/001-150x150.jpg" alt="" title="001" width="150"
 height="150" class="alignnone size-thumbnail wp-image-9" />

Ticket URL: <http://trac.wordpress.org/ticket/7039#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list