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)
Trying to use composite but says missing filename
-
- Posts: 3
- Joined: 2011-07-14T05:02:05-07:00
- Authentication code: 8675308
-
- Posts: 3
- Joined: 2011-07-14T05:02:05-07:00
- Authentication code: 8675308
Re: Trying to use composite but says missing filename
....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.
- 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 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.
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.
-
- Posts: 3
- Joined: 2011-07-14T05:02:05-07:00
- Authentication code: 8675308
Re: Trying to use composite but says missing filename
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.