Use image property/attribute in image transformations
Posted: 2014-11-26T10:56:47-07:00
Is there any way to set an image property (in sequence for example) and use that property for crop/resize/etc?
For example I can do the following (pseudocode):
And I will get the correct dimensions string "printed".
But I can't do the following:
It seems that -crop simply doesn't parse/resolve this variable.
Is there any way to use variables (options) set with -set in -crop/-resize/etc and not only -label and -annotate?
For example I can do the following (pseudocode):
Code: Select all
image.jpg ( -size 300x300 -annotate 0x0+0+0 "TEXT' -set option:textsize '%wx%h+0+0' ) ( -clone 0 -annotate 0x0+0+0 '%[textsize]' ) -composite
But I can't do the following:
Code: Select all
image.jpg ( -size 300x300 -annotate 0x0+0+0 "TEXT' -set option:textsize '%wx%h' ) ( -clone 0 -crop '%[textsize]' -blur 0x7 ) -composite
Is there any way to use variables (options) set with -set in -crop/-resize/etc and not only -label and -annotate?