imagemagick composite not passing the test ???

erl15

Joined: 2004-11-16
Posts: 11
Posted: Tue, 2005-03-08 21:51

I installed imagemagick 5.5.6 and/ 6.2.0 but i can't make the composite test passed...

the result error is: Problem executing binary:

i got this log:

composite: missing an image filename `/home/photopl/tmp/imgk_VvMKDz'.
Status: 1 (expected 0)
file_exists(/home/photopl/tmp/imgk_VvMKDz)
unlink(/home/photopl/tmp/imgk_VvMKDz)
chdir(/var/www/gallery2)

anyone know what is wrong with this???

<Please check the G2 FAQ (sticky topic in this forum) before posting!>
----

Gallery URL (optional):
Gallery version:G2 cvs
Webserver (with version):apache 2
Datatabase (with version): mysql
PHP version (eg 4.2.1): 4.3.9
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system: linux debian
Web browser/version:
G1 version (for migration bugs):

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-03-08 23:14

please post a little more of the debug output.. what was the full command that was executed? if you try that command from the command line does it get the same error?

 
erl15

Joined: 2004-11-16
Posts: 11
Posted: Wed, 2005-03-09 00:57

I ran this test...that u propose on another forum...

"cd into your gallery2/modules/imagemagick/test/data directory and run this command:

composite -geometry +0+0 test.jpg test.gif test.out "

...

and i got this kind of error

missing an image filename `test.out'.

only the composite is not working... tomorow I 'll try something... someone in this forum telling that changing the test.gif with a real image solve is problem because this test.gif have a 0 lengh...lets see.

if u have other idea... i'll thank u!

 
erl15

Joined: 2004-11-16
Posts: 11
Posted: Wed, 2005-03-09 13:36

it's not working i still got this error:

/var/www/gallery2/modules/imagemagick/test/data# composite -geometry +0+0 test.jpg test.gif test.out
composite: missing an image filename `test.out'.

here my output :

realpath(/var/www/gallery2/modules/core/classes/../../..)
Binding text domain: modules_multilang ->
/var/www/gallery2/modules/multilang/locale
is_dir(/usr/local/bin/)
getcwd()
chdir(/home/photopl/tmp/)
file_exists(/usr/local/bin/gm)
file_exists(/usr/local/bin/identify)
Executing: ( "/usr/local/bin/identify"
"/var/www/gallery2/modules/imagemagick/classes/../test/data/test.gif" )
2>/home/photopl/tmp/g2dbgjRqqSs
file_exists(/home/photopl/tmp/g2dbgjRqqSs)
filesize(/home/photopl/tmp/g2dbgjRqqSs)
unlink(/home/photopl/tmp/g2dbgjRqqSs)
Regular Output:
/var/www/gallery2/modules/imagemagick/classes/../test/data/test.gif GIF
295x97 295x97+0+0 PseudoClass 256c 16kb 0.010u 0:01
Error Output:
Status: 0 (expected 0)
file_exists(/usr/local/bin/gm)
tempnam(/home/photopl/tmp/, imgk_)
file_exists(/usr/local/bin/convert)
Executing: ( "/usr/local/bin/convert" "-size" "200x200" "-geometry"
"200x200"
"/var/www/gallery2/modules/imagemagick/classes/../test/data/test.gif"
"/home/photopl/tmp/imgk_pK2YGn" ) 2>/home/photopl/tmp/g2dbgNOJnti
file_exists(/home/photopl/tmp/g2dbgNOJnti)
filesize(/home/photopl/tmp/g2dbgNOJnti)
unlink(/home/photopl/tmp/g2dbgNOJnti)
Regular Output:
Error Output:
Status: 0 (expected 0)
unlink(/home/photopl/tmp/imgk_pK2YGn)
file_exists(/usr/local/bin/gm)
file_exists(/usr/local/bin/combine)
file_exists(/usr/local/bin/composite)
is_executable(/usr/local/bin/composite)
file_exists(/usr/local/bin/gm)
tempnam(/home/photopl/tmp/, imgk_)
Executing: ( "/usr/local/bin/composite" "-geometry" "+0+0"
"/var/www/gallery2/modules/imagemagick/classes/../test/data/test.jpg"
"/var/www/gallery2/modules/imagemagick/classes/../test/data/test.gif"
"/home/photopl/tmp/imgk_IyGHcJ" ) 2>/home/photopl/tmp/g2dbg3zF3S9
file_exists(/home/photopl/tmp/g2dbg3zF3S9)
filesize(/home/photopl/tmp/g2dbg3zF3S9)
fopen(/home/photopl/tmp/g2dbg3zF3S9, r, 0)
feof(Resource id #99)
fgets(Resource id #99, 4096)
feof(Resource id #99)
fgets(Resource id #99, 4096)
feof(Resource id #99)
fclose(Resource id #99)
unlink(/home/photopl/tmp/g2dbg3zF3S9)
Regular Output:
Error Output:
composite: missing an image filename `/home/photopl/tmp/imgk_IyGHcJ'.
Status: 1 (expected 0)
file_exists(/home/photopl/tmp/imgk_IyGHcJ)
unlink(/home/photopl/tmp/imgk_IyGHcJ)
chdir(/var/www/gallery2)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-03-09 16:26

you'll have to check the imagemagick documenation and see if anything is wrong with the set of command line parameters you see here.. as far as we know this is how you're supposed to run 'composite'.... so either the params are wrong for this im version or there is something wrong with your composite binary.

 
mister_denis

Joined: 2005-05-07
Posts: 4
Posted: Sun, 2005-05-08 15:51

Hello I have the same problem with the G2!

I check on my server on command line :

/usr/local/bin/composite -geometry +0+0 test.jpg test.gif test.out ...
and that failed

a parameter filename is missing :

/usr/local/bin/composite -geometry +0+0 test.jpg test.gif test.out filenameadded
WORKS!

I m suppossing there is a BUG in G2 check due to composite convention...

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-05-08 16:42

what is your imagemagick version?
what gets written to test.out, what gets written to filenameadded?
can you point us to imagemagick documentation that shows this is the correct method to invoke 'composite' ?

 
mister_denis

Joined: 2005-05-07
Posts: 4
Posted: Sun, 2005-05-08 18:11

I find the solution there:
http://www.imagefolio.com/ubb/Forum16/HTML/000109.html

>>You will also need to download the following supports files if not already
i nstalled. You can check for the header files in /usr/include to see if installed.

tiff.h
png.h
jpeglib.h

Thanks!!!