ZenphotoCMS Forum
Auto rotate images not active - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Auto rotate images not active (/thread-5698.html)



Auto rotate images not active - oc - 2009-08-18

Hi,

Finally manage to install zenphoto, i am trying to activate the auto-rotate or for that matter a manual rotate.

I just added the GD for PHP and compile it without error but i'm still not able to make these pictures rotate.

Here is my PHP info and GD info (from phpinfo.php)

PHP Version 5.2.6-3ubuntu4.1

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

Is there something i am missing ?

Thanks




Auto rotate images not active - sbillard - 2009-08-18

Have you tried the 1.2.6 release?




Auto rotate images not active - oc - 2009-08-18

I'm curently running 1.2.6 release fresh install from today.




Auto rotate images not active - sbillard - 2009-08-18

Is the option for autorotation enabled?




Auto rotate images not active - oc - 2009-08-19

That's my problem.... It's grey out... Cannot access it.




Auto rotate images not active - sbillard - 2009-08-19

You are missing the function imagerotate() in you GD build.




Auto rotate images not active - oc - 2009-08-20

Any idea how i could add this imagerotate() function to the build. I try compiling the bundle GD library but i always get errors on the build.




Auto rotate images not active - oc - 2009-08-20

FIXED


Here what i did to get the php5-gd bundle library

Open a command line interface & add following 2 lines to /etc/apt/sources.lst

deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all

then run > apt-get update
run > apt-get install php5-gd
( it will complain about non-authenticated sources .. just ignore, it will also update some additional php libs , keep local modified php.ini )

run > /etc/init.d/apache2 restart

Now my Auto Rotation in available


Now for a follow up question, do i have to delete all album and import them back again for the auto-rotate to kick in ?




Auto rotate images not active - sbillard - 2009-08-20

You may have to to a refresh metadata. If you have problems with specific images, set their database height/width values to zero.




Auto rotate images not active - lordmozilla - 2009-08-21

php-gd is compiled wrong in ubuntu, so the imagerotate() feature doesnt work. Hence it is greyed out. You need to update the php-gd library to a version not compiled by ubuntu goons.

I screwed up php on my server while doing this, so forgive the slight anger....

To rerotate, just clear the cache and the metadata. That should do it.