Resizing and overlay in the same command line

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
sorcer1
Posts: 4
Joined: 2010-01-18T03:22:42-07:00
Authentication code: 8675309

Resizing and overlay in the same command line

Post by sorcer1 »

Hello,

I know how to resize an image and how to overlay two images but if there is possible to do the 2 functions in same command line ?

This is my example :

Code: Select all

convert.exe -resize 100x100! BIG_IMAGE.PNG -composite -gravity center LITTE_IMAGE.PNG FINAL_IMAGE.PNG
I don't have errors but the the result is not correct.

Please help me.

Thanks.
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Resizing and overlay in the same command line

Post by el_supremo »

Try this:

Code: Select all

convert.exe BIG_IMAGE.PNG -resize 100x100! LITTE_IMAGE.PNG -gravity center -composite FINAL_IMAGE.PNG
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.
Post Reply