Rotating Images error

Phoca Gallery - image gallery extension
addi701
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 06 Apr 2009, 13:48

Rotating Images error

Post 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,
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Rotating Images error

Post 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
If you find Phoca extensions useful, please support the project
addi701
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 06 Apr 2009, 13:48

Re: Rotating Images error

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Rotating Images error

Post 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
If you find Phoca extensions useful, please support the project
Post Reply