Warning: imagecreatetruecolor(): Invalid image dimensions in d:\appserv\www\diskrepancija\include\inc_ext\ss_image\ss_image.class.php on line 262
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in d:\appserv\www\diskrepancija\include\inc_ext\ss_image\ss_image.class.php on line 458
Warning: imagepng(): supplied argument is not a valid Image resource in d:\appserv\www\diskrepancija\include\inc_ext\ss_image\ss_image.class.php on line 166
I obtain the same error that jimbOO says. I'm using the phpwcms v1.2.3-DEV and GD2. (I have tried GD1, but don't works al all.. images apears corrupted)
uops.. I see now that in the gd configuration there is no comment about JPG.. May it be the problem.. isn't it..?
I have instaled another phpwcms in another domain, but at the same server with no probl to upload any kind of images.. but I see that there the configuration is diferent:
In both domains, the configuration of GD in the PHPINFO is diferent if the link comes from Cpanel or from the link in phpwcms admin area. In the first case there is no reference to JPG. In the second this field is included..
Does anybody knows which is the reason of this difference.. ?
Whay may I do to solve the error in GD.. ?
I have consulted the hosting service to know about the real php configuration and it seems that JPG support is enabled. They says that this is the good one: http://82.194.66.50/phpinfo.php
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
Warning: imagecreatetruecolor(): Invalid image dimensions in /home/urbal10/public_html/include/inc_ext/ss_image/ss_image.class.php on line 262
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/urbal10/public_html/include/inc_ext/ss_image/ss_image.class.php on line 458
Warning: imagegif(): supplied argument is not a valid Image resource in /home/urbal10/public_html/include/inc_ext/ss_image/ss_image.class.php on line 156
As you said in the email, everything is ok.
The error comes from only one file. I have erased it and uploaded again, and the error message has disappeared.
Thanks for your help, Oliver.
Warning: imagecreatetruecolor(): Invalid image dimensions in /home/agemmell/public_html/include/inc_ext/ss_image/ss_image.class.php on line 261
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/agemmell/public_html/include/inc_ext/ss_image/ss_image.class.php on line 457
Warning: imagegif(): supplied argument is not a valid Image resource in /home/agemmell/public_html/include/inc_ext/ss_image/ss_image.class.php on line 156
I have GD2 and other JPGs work fine! Just this GIF seems to be giving me trouble. I tried deleting it and re-uploading it but I get the same error.
The GIF isn't big at all - it's just 880 bytes and 260px (width) by 2px (height).
Hmmm, I tried uploading a 199px wide GIF and it worked! Perhaps there is a 200px wide limit to the images that can be stored in the File Center? Is this correct?
Any idea why it would allow me to upload a 199x2 pixel GIF but cause errors with a 260x2 pixel GIF? I tried it again with a 216x2 pixel GIF and that caused an error too.