[wp-trac] [WordPress Trac] #25490: Issue with large images in Media Libray

WordPress Trac noreply at wordpress.org
Sat Oct 5 17:18:18 UTC 2013


#25490: Issue with large images in Media Libray
--------------------------+-----------------------------
 Reporter:  wpweaver      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  3.6.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Images in the media library are apparently limited to a maximum of 8192px
 width/height. This manifests as a PHP problem when using:

 $metadata = wp_get_attachment_metadata();
 $w = $metadata [ 'width' ];
 $h = $metadata[ 'height' ];

 as used by many themes (including Twenty Thirteen at least) to display
 Attachment pages. The resulting run-time errors (using twenty-thirteen):

 Warning: Illegal string offset 'width' in /wp-
 content/themes/twentythirteen/image.php on line 40
 Warning: Illegal string offset 'height' in /wp-
 content/themes/twentythirteen/image.php on line 41

 This was with a 9,000px wide .jpg image (which loaded into the media
 library okay, but stopped with a "crunching" message on the upload page).
 The errors went away when the image was reduced to 8192px, so I'm assuming
 there is a limit of 8192 somewhere.


 This manifests in 3.6.1, but I'd assume it is in 3.7 beta as well.

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


More information about the wp-trac mailing list