Trying to use composite but says missing filename

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
armadillo_crunchy
Posts: 3
Joined: 2011-07-14T05:02:05-07:00
Authentication code: 8675308

Trying to use composite but says missing filename

Post by armadillo_crunchy »

I am quite new to ImageMagick so please be patient with my limited understanding of syntax etc.

The following used to work (placing file1.tif at the coordinates specified over the top of file2 and calling the result result.tif):

composite -geometry +0+0 file1.tif file2.tif result.tif

..but now I get a message saying composite: missing an image filename 'result.tif'

Please can anyone tell me how to make it work again?!

PS the version is 6.7.0-10 Q16 (2011-07-01)
armadillo_crunchy
Posts: 3
Joined: 2011-07-14T05:02:05-07:00
Authentication code: 8675308

Re: Trying to use composite but says missing filename

Post by armadillo_crunchy »

....Just tried doing it with new (small) files and it worked. It seems there is something IM doesn't like about the files I am using. They look ok and I can open them ok. I can't even do convert file1.tif file1.jpg on them, it comes up with the same message about filename missing.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Trying to use composite but says missing filename

Post by fmw42 »

post a link to your two files and we can look at them. one issue may be that tif files support multiple frames/layers/pages. It could be that the two files are not single frames or have different number of frames. If you want try

composite -geometry +0+0 file1.tif[0] file2.tif[0] result.tif

that will get you the first frame which is usually the flattened image from all the frames.
armadillo_crunchy
Posts: 3
Joined: 2011-07-14T05:02:05-07:00
Authentication code: 8675308

Re: Trying to use composite but says missing filename

Post by armadillo_crunchy »

Thank you for that fmw. I got round it in the end by recreating the files I was working with and trying again and also asking the result to be a jpg instead of a tif. I just came back on here to say don't worry about replying. But if your way could make it work without having to change the result to a jpg that would be fantastic, so I will try it. Thank you.
Post Reply