Noob needs help- combining commands in Windows ImageMagick

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
hairgamiMaster
Posts: 2
Joined: 2012-09-14T20:57:10-07:00
Authentication code: 67789

Noob needs help- combining commands in Windows ImageMagick

Post by hairgamiMaster »

In Windows ImageMagick, I have to rotate an image before I can place it on the page:

Code: Select all

convert .\source1.png -alpha set -background none -rotate 15 rotate.png
I then place it on the page:

Code: Select all

composite -compose over .\rotate.png -geometry +103+160 bg.png output.png
I'm trying to figure out how to not write the "rotate.png" to disk, but just store it in memory until the composite step. I've unsuccessfully tried:

Code: Select all

composite -compose over ( .\source1.png -alpha set -background none -rotate 15 ) .\source1shadow.png .\bg.png  output.png
Is there a way to make this work? Many thanks for your help.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Noob needs help- combining commands in Windows ImageMagi

Post by fmw42 »

change your syntax to use convert ... -composite rather than composite, which is much older and more restrictive.

see
http://www.imagemagick.org/Usage/layers/#convert
http://www.imagemagick.org/Usage/compose/#compose
hairgamiMaster
Posts: 2
Joined: 2012-09-14T20:57:10-07:00
Authentication code: 67789

Re: Noob needs help- combining commands in Windows ImageMagi

Post by hairgamiMaster »

Many thanks my friend.
Post Reply