Problem using swap command
Posted: 2011-08-04T14:26:03-07:00
This is my first post here, so, hi to everybody and thanks to the creators of Imagemagick, it's such an impressive tool.
I'm having problems sortening layers using convert tool.
Basically, I start with an image and I want to do these manipulations:
Here is my commandline:
Any idea or suggestion about how to solve this problem?
Thanks in advance.
I'm having problems sortening layers using convert tool.
Basically, I start with an image and I want to do these manipulations:
- Resize -> layer 0
- Color multiply (duplicating the image, filling it with color and finally compositing) -> layer 1
- Add border to layer 0
- Shadow of layer 0 (duplicating it, converting into shadow and sending it to the bottom) -> layer 2
Here is my commandline:
Code: Select all
convert.exe image.png
-matte -background none
-resize 300x270!
-unsharp 1.5x1+1+0.2
( +clone -fill "#bfae3b" -colorize 100% -compose Multiply )
-bordercolor "#ffffff" -border 5
-virtual-pixel transparent +distort SRT 0 <---- rotation, forget it ;)
+repage ( +clone -shadow 0.5x3+0+3 )
-swap 2,0 -swap 2,1 -flatten
output.jpg
Thanks in advance.