SMFHacks.com

SMF Gallery Pro => Support => Bugs => Topic started by: Vincent Volmer on July 13, 2009, 01:57:56 am

Title: [2.5] Rotating Image
Post by: Vincent Volmer on July 13, 2009, 01:57:56 am
Hello,

Thanks for the update!

I found 2 other errors which are maybe a bug?

Rotate existing Image by xx degrees
When I try to rotate an existing image I get this error:
Code: [Select]
Fatal error: Call to undefined function imagerotate() in /shared/usr/wzen1234567/DOMAIN/www.digiscrap.nl/HTML/Sources/Gallery2.php on line 7794

Vincent
Title: Re: [2.5b3] Rotating Image
Post by: SMFHacks on July 13, 2009, 08:01:26 am
Might not be in your version of PHP?
http://us2.php.net/imagerotate

Says it works for (PHP 4 >= 4.3.0, PHP 5)
Title: Re: [2.5b3] Rotating Image
Post by: Vincent Volmer on July 13, 2009, 08:22:39 am
Might not be in your version of PHP?
http://us2.php.net/imagerotate

Says it works for (PHP 4 >= 4.3.0, PHP 5)

Hmmmm phpinfo says:

Code: [Select]
PHP Version 5.2.6-1+lenny3

gd
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.7
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

1) How can I check if imagerotate is enabled. I can't find it in phpinfo
2) Or how can I disable rotating in the Gallery because our users don't need it.

Thanks
Vincent
Title: Re: [2.5b3] Rotating Image
Post by: Vincent Volmer on July 13, 2009, 11:55:05 am
Might not be in your version of PHP?
http://us2.php.net/imagerotate

Says it works for (PHP 4 >= 4.3.0, PHP 5)

I asked my host. Just waiting for the answer from them now.

Vincent
Title: Re: [2.5b3] Rotating Image
Post by: SMFHacks on July 13, 2009, 01:03:10 pm
Yeah really strange. Searched on google. It seems some versions of php5 use a different gd libation that may ore may not have the function
Title: Re: [2.5b3] Rotating Image
Post by: Vincent Volmer on July 20, 2009, 06:05:54 am

Thanks for the RC1!!

The answer from my host:

Because of a security reason the imagerotate function isn't present in the Debian distribution. My host is using Debian.
So, can i disable the rotate function somehow in SMFGallery?

Thanks Vincent


Title: Re: [2.5b3] Rotating Image
Post by: SMFHacks on July 20, 2009, 07:51:05 am
Bah ok I can add a check on that page.
Title: Re: [2.5b3] Rotating Image
Post by: SMFHacks on July 20, 2009, 07:12:29 pm
Fixed for final release to not appear if you do not have the imagerotate function.
Title: Re: [2.5b3] Rotating Image
Post by: Vincent Volmer on July 21, 2009, 01:40:13 am
Fixed for final release to not appear if you do not have the imagerotate function.

Thank you!

Vincent
Title: Re: [2.5] Rotating Image
Post by: Vincent Volmer on July 23, 2009, 01:58:03 am
Fixed for final release to not appear if you do not have the imagerotate function.

Great!
Only when a member adds an new image he still has the possibility to rotate. And when he tries to rotate.....:

Code: [Select]
Fatal error: Call to undefined function imagerotate() in /shared/usr/wzen123456/DOMAIN/www.digiscrap.nl/HTML/Sources/Gallery2.php on line 7905
When a member tries to edit the image the rotate option isn't present. This is correct.

Vincent
Title: Re: [2.5] Rotating Image
Post by: SMFHacks on July 23, 2009, 07:42:15 pm
Fixed for 2.5.1