For example a script that takes a input and output image and processes it in some magical way
Code: Select all
do_some_magick input.png output.png
Code: Select all
do_some_magick input.png show:
Code: Select all
convert -size 400x300 xc:Salmon miff:- | do_some_magick miff:- show:
Well here is a tip for you... Supply a blank canvas image of any size or color as a single argument....
Code: Select all
do_some_magick 'xc:Salmon[400x300!]' show:
I added the canvas generation technique to IM Examples, Canvas page.
Enjoy