ivan.savu wrote:I have first tried using convert, but since convert gets input as command line arguments, I had trouble calling convert.exe with such a large number of arguments.
Okay command line limit. Something that will be resolved for version 7 of IM, with the ability to read options from a file or pipeline. It could even allow for 'daemon' "convert" processes!
The suggested method of loading all images into the same canvas didn't work, because MSL doesn't support placing image tag into another image tag.
The resulting image is same as the last image I tried to compose.
I suppose that's becuase <read> tag reads into the top image (the main image) instead into the_image canvas
That is a shame.
I see the same effect with MPR named registers...
convert \( cyclops.gif -write mpr:this_image +delete \) \
\( dragon.gif -write mpr:this_image +delete \) \
mpr:this_image show:
I use to get the cyclops image, (the dragon was not stored) but now I see the dragon image.
What version of IM are you using?
Hmmm adjusting your test script I can't even see the compositions in the output..
Code: Select all
<image size="512x512">
<read filename="xc:none" />
<image id="the_image">
<read filename="im1.jpg" />
</image>
<composite geometry="+0+0" image="the_image" />
<image id="the_image">
<read filename="im2.jpg" />
</image>
<composite geometry="+256+0" image="the_image" />
<write filename="show:" />
</image>
But reordering it back to more like the original I see the compositions...
Code: Select all
<group>
<image id="i1">
<read filename="im1.jpg" />
</image>
<image id="i2">
<read filename="im2.jpg" />
</image>
<image size="512x512">
<read filename="xc:none" />
<composite geometry="+0+0" image="i1" />
<composite geometry="+256+0" image="i2" />
<write filename="show:" />
</image>
</group>
I have been playing with it but can not find any guide on making good use of it!
Also its error reporting sucks, with no indication on what line the error is on!