imagecreatetruecolor fails when WP tries to make image with width of 0
|Reported by:||pat@…||Owned by:||nacin|
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.
Change History (8)
- Keywords has-patch needs-testing added
- Version changed from 3.6 to trunk