Issue with large images in Media Libray
|Reported by:||wpweaver||Owned by:|
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.