[wp-trac] [WordPress Trac] #25038: imagecreatetruecolor fails when WP tries to make image with width of 0
WordPress Trac
noreply at wordpress.org
Wed Aug 14 18:47:08 UTC 2013
#25038: imagecreatetruecolor fails when WP tries to make image with width of 0
--------------------------+-----------------------------
Reporter: pat@… | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.6
Severity: major | Keywords:
--------------------------+-----------------------------
Uploading a tall narrow image will cause an error when trying to upload.
I've uploaded an image with dimensions 4x1640, and when WP generates image
sizes it's trying to create an image at 0x300 which throws an error in
'imagecreatetruecolor'.
I'd expect WP to skip an attempt to create an image with invalid
dimensions.
No relevant plugins installed that would affect this. Problem may exist at
other image ratios as well.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25038>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list