[SOLVED] What if no image toolkit seems installed?
|
jusie
Joined: 2007-06-21
Posts: 19 |
Posted: Sun, 2009-08-09 14:41
|
|
This probably sounds like a really stupid question but I'm lost - I have just done a fresh install of Gallery 3 and in the admin section it tells me the GD toolkit is active but "You do not have GD installed." - How do I get it installed?! I have a Gallery 2 installation on another domain (hosted by the same provider) and GD is available there, and was from the start...so I don't think the issue is related to my webhost? Unless this depends on the PHP version, as this other account is still on PHP 5.2.0. Whilst I have install/uninstall options for all the toolkits in Gallery 2 - how do I do this in Gallery 3? Any advice is appreciated, thank you in advance. |
|
| Login or register to post comments |

Posts: 9289
Post a link to a phpinfo file that is under your G3 install. This link will explain how to make that file. Just make sure you upload it to a directory under your G3 install.
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 19
Sorry I know I could have posted this link straight away, just didn't realise there was a connection...I'm eager to learn about this though.
PHPinfo in the root directory of my gallery
(I know there's a timezone warning in there too; I'm working on that)
Posts: 9289
Yep that version of PHP doesn't have GD either compiled with it or being loaded.
Here's an excerpt from one of my servers:
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 19
Ah...I'm not quite as daft as I sound ;) - I'd actually searched the phpinfo for 'gd' and come up with no results but didn't know what it meant/whether it meant anything.
I'm off to speak to my host. Thank you very much.
Posts: 19
Well I'm back and I now have the static version of ImageMagick on my server - which works with various CMS software - does Gallery 3 normally work with it too?
I have made the ImageMagick files executable and I don't see anything wrong with them, but Gallery still tells me "ImageMagick is not available on your system."
I have also edited the Admin dashboard's Advanced settings and inserted the full path to the IM directory, based on the document_root path from phpinfo().
Could this be a cache problem? but Gallery 3 doesn't have the same Cache logic/Clear Cache options as Gallery 2 does it?
I've searched for hints but can't find any information.
Posts: 9289
Where is IM located? G3, to be more user friendly, is hard coded to look in the most common paths. You can also specify a path to IM in Admin > Settings > Advanced
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 19
It is located in my root directory (as is my Gallery installation), in a folder called "imagemagick". So in the Advanced settings I have set graphics_toolkit_path to /var/www/vhosts/jhornig.de/httpdocs/imagemagick (copied the path from phpinfo and added the IM directory at the end). The value for graphics_toolkit is imagemagick (IM also shows as my Active Toolkit in the Graphics Settings, but remains "Not Available").
I have refreshed the Settings -> Graphics page a couple of times, but no luck.
Posts: 9289
Yeah, G3 isn't going to look there, ever, unless you tell it to.
So are the binaries, identify, convert, gm, etc in that imagemagick directory?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 19
Yeah that directory contains
combine
convert
identify
Magick-config
and the author's info.txt file
All set to Executable via CHMOD. I got the directory's content as a .zip file from my host (they say several other customers use it with Typo3 and that works), but I've also tried the one available here http://typo3.sunsite.dk/software/linux/imagemagick-4.2.9_i386-static-3.tar.gz and renamed the .bin files by removing the file extension. Gallery always just tells me that IM is not available.
Posts: 9289
I don't know. That appears to be a very old version of ImageMagick. I just tested it with my G3 install it does "work" but not really. I rotated a thumbnail and while the thumbnail rotated it didn't seem to resize the images so it took the resized or fullsize version and put that in place of the thumbnail.
In short, I don't think that statically compiled version is going to work.
As for G3 not recognizing that I had specified a path, please file a bug report: http://sourceforge.net/apps/trac/gallery
My G3 install didn't appear to recognize that I had put those binaries in /var/www/gallery3/im/bin even though I specified that path in Admin > Settings > Advanced. It did use them though. When I went to Admin > Content > Graphics I said IM was available in /usr/bin
I think your best best is going to get your host to install it or use a version of PHP that uses GD. If they install/compile a version of IM for their version of Linux it's going to be better anyway than people using old versions with possible security holes.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 19
Thank you - I've actually tried uploading another image too and it did create resizes and thumbnails - although I too noticed the 'thumbnails' are more like random cut-outs of the actual image.
I have reported the toolkit path bug here.
Fingers crossed my host agrees to install IM on their server. I can't wait to get going now.
Posts: 16325
Bug is now fixed:
http://github.com/gallery/gallery3/commit/294215258a30bb0e99701655ce2b69271446a867
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 19
Smashing, thank you.