ImageMagick woes.. [convert and composite, no such file or directory]

puntie

Joined: 2005-04-06
Posts: 29
Posted: Wed, 2010-03-17 01:54

I'm running into an issue with ImageMagick as below which is impacting creation of thumbnails. I don't understand why there's no such file or directory in the /tmp folder. (I also don't understand why every time I type an uppercase letter "i", the Gallery forum software assumes I want to add italics to it... sorry for the mess.) :)

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(/public_html/gallery_data/tmp/)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
file_exists(/usr/bin/identify)
getParameter exec.beNice for core plugin
Executing: ( "/usr/bin/identify"
"/public_html/gallery2/modules/imagemagick/data/test.gif" )
2>"/tmp/g2dbguu7GA5"
getParameter exec.expectedStatus for core plugin
file_exists(/tmp/g2dbguu7GA5)
filesize(/tmp/g2dbguu7GA5)
unlink(/tmp/g2dbguu7GA5)
Regular Output:
/public_html/gallery2/modules/imagemagick/data/test.gif GIF
50x50 50x50+0+0 PseudoClass 8c 2.3e+02
Error Output:
Status: 0 (expected 0)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
tempnam(/public_html/gallery_data/tmp/, imgk_)
file_exists(/usr/bin/convert)
Executing: ( "/usr/bin/convert" "-size" "200x200" "-geometry" "200x200"
"/public_html/gallery2/modules/imagemagick/data/test.gif"
"gif:/public_html/gallery_data/tmp/imgk_cAuJPJ" )
2>"/tmp/g2dbg690M4n"
file_exists(/tmp/g2dbg690M4n)
filesize(/tmp/g2dbg690M4n)
fopen(/tmp/g2dbg690M4n, r, 0)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fclose(Resource id #120)
unlink(/tmp/g2dbg690M4n)
Regular Output:
Error Output:
convert: unable to open image
`/public_html/gallery_data/tmp/imgk_cAuJPJ': No such file or
directory.
Status: 1 (expected 0)
unlink(/public_html/gallery_data/tmp/imgk_cAuJPJ)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
file_exists(/usr/bin/combine)
file_exists(/usr/bin/composite)
is_executable(/usr/bin/composite)
is_dir(/usr/bin/)
file_exists(/usr/bin/gm)
tempnam(/public_html/gallery_data/tmp/, imgk_)
Executing: ( "/usr/bin/composite" "-geometry" "+0+0"
"/public_html/gallery2/modules/imagemagick/data/test.jpg"
"/public_html/gallery2/modules/imagemagick/data/test.gif"
"gif:/public_html/gallery_data/tmp/imgk_mvw6o2" )
2>"/tmp/g2dbg2V6qJG"
file_exists(/tmp/g2dbg2V6qJG)
filesize(/tmp/g2dbg2V6qJG)
fopen(/tmp/g2dbg2V6qJG, r, 0)
feof(Resource id #122)
fgets(Resource id #122, 4096)
feof(Resource id #122)
fgets(Resource id #122, 4096)
feof(Resource id #122)
fclose(Resource id #122)
unlink(/tmp/g2dbg2V6qJG)
Regular Output:
Error Output:
composite: unable to open image
`/public_html/gallery_data/tmp/imgk_mvw6o2': No such file or
directory.
Status: 1 (expected 0)
unlink(/public_html/gallery_data/tmp/imgk_mvw6o2)
chdir(/public_html/gallery2)

Other important info:
Last Run Details:

Gallery URL = [redacted]
Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.13 cgi-fcgi
Webserver = Apache
Database = mysqlt 5.0.89-community, lock.system=flock
Toolkits = Getid3, LinkItemToolkit, Thumbnail, ArchiveUpload, Gd, NetPBM
Acceleration = none, none
Operating system = Linux [server] 2.6.18-128.2.1.el5xen #1 SMP Tue Jul 14 07:07:49 EDT 2009 x86_64
Default theme = carbon
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
Rows in GalleryAccessMap table = 17
Rows in GalleryAccessSubscriberMap table = 20485
Rows in GalleryUser table = 5
Rows in GalleryItem table = 20483
Rows in GalleryAlbumItem table = 796
Rows in GalleryCacheMap table = 0

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Wed, 2010-03-17 04:07
 
puntie

Joined: 2005-04-06
Posts: 29
Posted: Wed, 2010-03-17 04:37

Interesting. Thanks!

My problem was actually that I was missing a /tmp folder in gallery_data altogether, so the permissions (which were correct) weren't the problem. I'm not sure why it wasn't created, but I'm glad it's solved now ;)