Page 1 of 1

Noob needs help- combining commands in Windows ImageMagick

Posted: 2012-09-15T10:28:56-07:00
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.

Re: Noob needs help- combining commands in Windows ImageMagi

Posted: 2012-09-15T10:36:44-07:00
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

Re: Noob needs help- combining commands in Windows ImageMagi

Posted: 2012-09-15T11:36:41-07:00
by hairgamiMaster
Many thanks my friend.