[wp-trac] Re: [WordPress Trac] #8754: Uploading images whose dimensions are greater than the maximum size allowed fail to generate thumbnails and no error/failure message is displayed.

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 30 03:41:23 GMT 2008


#8754: Uploading images whose dimensions are greater than the maximum size allowed
fail to generate thumbnails and no error/failure message is displayed.
---------------------------------------------------------------------+------
 Reporter:  DRGDC                                                    |        Owner:     
     Type:  defect (bug)                                             |       Status:  new
 Priority:  normal                                                   |    Milestone:  2.9
Component:  Upload                                                   |      Version:  2.7
 Severity:  normal                                                   |   Resolution:     
 Keywords:  image, photo, thumbnail, dimension, size, limit, upload  |  
---------------------------------------------------------------------+------
Comment (by DD32):

 Hm.. Ok.. So i created a 120megapixel image.

 indeed, It dies as you suggest, crunching just stops, thumbnails never
 created.

 but the actual cause... is weird.. {{{imagecreatefromstring()}}} the PHP
 function gets called to load the image, But it just.. doesn't work for
 large files (In this case, 14MB, and 15510x8000px). While the docs say it
 will return false upon error, The function never returns, PHP just stops
 in its tracks, and nothing more gets run.. Which makes it a bit hard to
 catch the error condition of the thumbnails not being created..

 (Btw, I'm talking about the code inside wp_load_image() at present)

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8754#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list