Code: Select all
convert pic1.svg pic2.svg \
-fuzz 40% -fill $FG -opaque black \
-background $BG -alpha remove -bordercolor $BG -border 5% \
-append \
-resize $SIZE \
output.png
Any advice would be greatly appreciated.
Code: Select all
convert pic1.svg pic2.svg \
-fuzz 40% -fill $FG -opaque black \
-background $BG -alpha remove -bordercolor $BG -border 5% \
-append \
-resize $SIZE \
output.png
Code: Select all
convert -size 1000x496 gradient:yellow-green pic1.svg -composite output.png
Code: Select all
convert pic1.svg pic2.svg \
-fuzz 40% -fill $FG -opaque black \
-bordercolor none -border 5% \
-append \
-resize $SIZE \
/tmp/output.png
DIMENSION=$(identify -format %wx%h /tmp/output.png)
convert -size $DIMENSION gradient:yellow-green /tmp/output.png -composite output.png
Code: Select all
convert pic1.png pic2.png \
-background white -alpha remove -bordercolor white -border 5% \
-append \
-resize $SIZE \
/tmp/output.png
DIMENSION=$(identify -format %wx%h /tmp/output.png
convert /tmp/output.png \
\( +clone -size $DIMENSION -tile $BG -draw "color 0,0 reset" \) \
\( +clone -size $DIMENSION -tile $FG -draw "color 0,0 reset" \) \
-reverse -composite output.png
I am not quite sure I understand. If I need to create a gradient as per my colour commandline parameter, for example (BG=gradient:blue-green")anthony wrote:draw reset and the -tile (fill with image rather than color) does NOT require a size [...]
Code: Select all
\( +clone -tile $BG -draw "color 0,0 reset" \)
I am on IM 6.7.7 (latest greatest on Debian wheezy).anthony wrote:NOTE: even if you did need to set size, IMv7 will let you do it in one command (or script file)
As far as I know, in IM 6, you cannot. I think it will be available in IM 7, but that is a long way off.How can I create a gradient on the fly without specifying the size? Just curious - it's not the end of th world if I need to split it into two commands.
Code: Select all
convert /tmp/output.png \
\( +clone -size $DIMENSION -tile $BG -draw "color 0,0 reset" \) \
\( +clone -size $DIMENSION -tile $FG -draw "color 0,0 reset" \) \
-reverse -compose Src -composite output.png
Oh yes of course the size is for gradient: not -draw or -tile.Draoidh wrote:I am not quite sure I understand. If I need to create a gradient as per my colour commandline parameter, for example (BG=gradient:blue-green")anthony wrote:draw reset and the -tile (fill with image rather than color) does NOT require a size [...]I get an error message if I don't specify the size.Code: Select all
\( +clone -tile $BG -draw "color 0,0 reset" \)