expressions as arguments
Posted: 2015-04-10T06:33:09-07:00
Is there a way to use an expression for crop's geometry? I've done this with -distort, -print, and filenames. Does it work anywhere else? I vaguely remember someone getting this to work for -size xc:, but I can't find the post.
convert in.jpg -crop %[fx:min(w,h)-10]x%[fx:min(w,h)-10]+5+5 out.jpg
OR
convert in.jpg -set foo 100x100+5+5 -crop %[foo] out.jpg
convert in.jpg -crop %[fx:min(w,h)-10]x%[fx:min(w,h)-10]+5+5 out.jpg
OR
convert in.jpg -set foo 100x100+5+5 -crop %[foo] out.jpg