I left the input box for the height of rescaled images empty, because I wanted to restrict only the width of images. The form can be saved without an error, but if you try to display the image then some php errors get thrown (because apparently the empty variable is passed to the gd functions). These are the error messages out of my watchdog:
Cannot use a scalar value as an array in /var/www/xyz/test/htdocs/modules/cck/imagecache.module on line 114.
imagedestroy(): supplied argument is not a valid Image resource in /var/www/xyz/test/htdocs/includes/image.inc on line 229.
imagejpeg(): supplied argument is not a valid Image resource in /var/www/xyz/test/htdocs/includes/image.inc on line 300.
imagecopyresampled(): supplied argument is not a valid Image resource in /var/www/virtual/xyz/test/htdocs/includes/image.inc on line 226.
imagecreatetruecolor(): Invalid image dimensions in /var/www/xyz/test/htdocs/includes/image.inc on line 225.
Comments
Comment #1
dopry commentedI'm haven't yet implemented validation. I won't do it myself for imagecache until I finish splitting the code for the image manipulation and dynamic image generation. I have completed a new admin UI that will make validation much simpler, I just have some periferal work to make it work. I think its about 2 weeks out.
Comment #2
drewish commentedi'm pretty sure we've gotten this taken care of by now.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.