how to use just one IM call?
Posted: 2010-08-11T08:08:54-07:00
Hi everyone,, I am really thankful to be able to use ImageMagick in my software to render files.
Currently I have created template files which contain reference to images + render settings. Depending on arguments mentioned in these template files software will call IM convert.exe several times. These call are more or less like these:
As you can see with this approach I render input images as seperate .miff files and then combine them together at last call by using -draw image.
I am wondering if there is a way to this in one IM convert call and having following things in mind:
Currently I have created template files which contain reference to images + render settings. Depending on arguments mentioned in these template files software will call IM convert.exe several times. These call are more or less like these:
Code: Select all
// input images
convert.exe "xxxxx1.jpg" ..... "xxxxx1.miff"
convert.exe "xxxxx2.jpg" ..... "xxxxx2.miff"
convert.exe "xxxxx3.jpg" ..... "xxxxx3.miff"
// output image
convert.exe xc:white -resize ?x? -draw "image Over ?,? 0,0 'xxxxx1.miff'" -draw "image Over ?,? 0,0 'xxxxx2.miff'" -draw "image Over ?,? 0,0 'xxxxx3.miff'" -quality 100 "output.jpg"
I am wondering if there is a way to this in one IM convert call and having following things in mind:
- I still should be able to resize/rotate/... all input images( "xxxxx1.jpg"/ "xxxxx2.jpg"/ "xxxxx3.jpg"/...)
- input items could be placed at desired position in "output.jpg"