Page 1 of 1

Imagemagick on www5 and Gallery

Posted: Sun Mar 03, 2013 5:42 pm
by Misha
Hi,

I am trying to see if I can get ImageMagick to resize batch images that I upload to a Gallery 2.3 installation (through an Upload Applet). First of all, is that something that will work on a shared server? Second of all, what is the path to ImageMagick? I have tried /usr/bin and /usr/share and get errors in the debugging section of Gallery.

I am not planning on uploading tons of photos at once. The photos can be large, howerver (4 MB). I also wonder if uploading counts as monthly bandwidth?

I would send a help desk request, but this may be interesting for others. If you need the username of the account let me know.

I also realize that client-side resizing may be a better solution.

Thanks.

is_dir(/usr/bin/)
Loading plugin imagemagick
imagemagick plugin successfully instantiated
Check the version of the imagemagick plugin
The version of the imagemagick plugin is ok
getcwd()
chdir(/home/xxxxx/uploaded_photos/tmp/)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
file_exists(/usr/bin/identify)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
tempnam(/home/xxxxx/uploaded_photos/tmp/, imgk_)
file_exists(/usr/bin/convert)
unlink(/home/xxxxxxx/uploaded_photos/tmp/imgk_VdhaGB)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
file_exists(/usr/bin/combine)
file_exists(/usr/bin/composite)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
tempnam(/home/xxxxxxxx/uploaded_photos/tmp/, imgk_)
getParameter exec.beNice for core plugin
Executing: ( "/usr/bin/composite" "-geometry" "+0+0"
"/home/xxxxxxx/public_html/photos/modules/imagemagick/data/test.jpg"
"/home/xxxxxxx/public_html/photos/modules/imagemagick/data/test.gif"
"gif:/home/xxxxxxx/uploaded_photos/tmp/imgk_sUHE1v" )
2>"/home/xxxxxxx/uploaded_photos/tmp/g2dbgaVR9mq"
getParameter exec.expectedStatus for core plugin
file_exists(/home/xxxxxxx/uploaded_photos/tmp/g2dbgaVR9mq)
filesize(/home/xxxxxxx/uploaded_photos/tmp/g2dbgaVR9mq)
fopen(/home/xxxxxxx/uploaded_photos/tmp/g2dbgaVR9mq, r, 0)
feof(Resource id #115)
fgets(Resource id #115, 4096)
feof(Resource id #115)
fgets(Resource id #115, 4096)
feof(Resource id #115)
fclose(Resource id #115)
unlink(/home/xxxxxxx/uploaded_photos/tmp/g2dbgaVR9mq)
Regular Output:
Error Output:
sh: /usr/bin/composite: No such file or directory

Status: 127 (expected 0)
unlink(/home/xxxxxxx/uploaded_photos/tmp/imgk_sUHE1v)
chdir(/home/xxxxxxx/public_html/photos)

Re: Imagemagick on www5 and Gallery

Posted: Sun Mar 03, 2013 8:48 pm
by porcupine
Hi Misha,

Awhile back, CPanel changed the way ImageMagick was handled (from script/direct with CPanel, to a yum package).

I've dropped in the support for the ImageMagick modules to the www5 server VIA the yum update/RPM method, and linked it in accordingly. Give it a go now?

Anything you upload/download from the server VIA http, or ftp, would indeed get logged within your bandwidth quota. Stuff manipulated by ImageMagick (IE: to resize, etc.) would not get counted, it's local, bits aren't leaving the server, etc.

Hope this helps :)