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?".
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:
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"
I've changed "xc:white -resize ?x?" to "-size ?x? xc:white" which might perform better. Each of the input images is processed (rotated etc.) within a pair of parentheses.
If you have a varying number of input images perhaps you can script this so that you build up a command and then execute it.
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
I've changed "xc:white -resize ?x?" to "-size ?x? xc:white" which might perform better. Each of the input images is processed (rotated etc.) within a pair of parentheses.
If you have a varying number of input images perhaps you can script this so that you build up a command and then execute it.
Pete
I would use some form of line breaks to make the command simplier to follow
Thank you guys.. I always assumed it might be possible to do that but didn't think that it would be that easy.
ProfessorJerk I still need to pass seperate parameters (like resize/rotate/...) for each image so I think approach suggested by el_supremo works way I want it. Anthony thank you for additional info. I will take a look at the two stage approach with pipline if parentheses approach wont work well for me.