Page 1 of 1

Rotating Images error

Posted: 07 Apr 2009, 13:15
by addi701
Hi,

I have a strange error, I have 2 sites that i´m having this trouble on.

One site is 1.5.8 with Phoca Gallery 2.2.0
The other is 1.5.9 with Phoca Gallery 2.2.3

I have been searching but found no solution to this problem.

When i am logged into the administration page and goto phoca gallery images, And try to rotate an image it gives me this error.

PHP Warning: imagedestroy(): 89 is not a valid Image resource in \administrator\components\com_phocagallery\helpers\phocagallery.php on line 302
PHP Warning: imagedestroy(): 93 is not a valid Image resource in \administrator\components\com_phocagallery\helpers\phocagallery.php on line 302
PHP Warning: imagedestroy(): 97 is not a valid Image resource in \administrator\components\com_phocagallery\helpers\phocagallery.php on line 302

But if i press back on the browser the image has been rotated.


Everything else in Phoca Gallery works,

Re: Rotating Images error

Posted: 07 Apr 2009, 14:22
by Jan
Hi, try to check all GD functions on your site, maybe some function is missed, see the required functions in Phoca Gallery - Info site (in administration)

Jan

Re: Rotating Images error

Posted: 07 Apr 2009, 16:31
by addi701
It shows the following in green

getImageSize
imageCreateFromJPEG
imageCreateFromPNG
imageCreateFromGIF
imageRotate
imageCreateTruecolor
imageCopyResampled
imageFill
imageColorTransparent
imageColorAllocate

And this in red exif_read_data



Like i said, the strange thing is that it gives an error but it does rotate the picture.

Re: Rotating Images error

Posted: 15 Apr 2009, 21:21
by Jan
??? so maybe it will destroy the old image but get some problem there, but what kind of problem, I am trying to test it on my test sites (winxp, suse, freebsd) and get no problems there :-(

Jan