-set option:
Posted: 2008-05-24T07:01:34-07:00
This works; I get an image of text showing the size of the rose:
This works; I get the same thing but I can specify the height of the image:
But to what extent can I plop mylabel into other places, such as an argument to -size or inside a -draw string? The following does not work (error messages follow). I'm trying to grab the size of rose: and use it for sizing a gradient. Is it futile or is my syntax wrong?
convert: Must specify image size `yellow-red'.
convert: missing an image filename `option.png'.
(Changing "%[mylabel]" to 20x20 works just fine, so the syntax seems otherwise correct.)
I'm on WinXP, IM 6.4.1.
Rick
Code: Select all
convert rose: -set option:mylabel "%wx%h" -delete 0 label:"%[mylabel]" option1.png
This works; I get the same thing but I can specify the height of the image:
Code: Select all
convert rose: -set option:mylabel "%wx%h" -delete 0 ( -size x100 label:"%[mylabel]" ) option2.png
But to what extent can I plop mylabel into other places, such as an argument to -size or inside a -draw string? The following does not work (error messages follow). I'm trying to grab the size of rose: and use it for sizing a gradient. Is it futile or is my syntax wrong?
Code: Select all
convert rose: -set option:mylabel "%wx%h" -delete 0 ( -size "%[mylabel]" gradient:yellow-red ) option.png
convert: missing an image filename `option.png'.
(Changing "%[mylabel]" to 20x20 works just fine, so the syntax seems otherwise correct.)
I'm on WinXP, IM 6.4.1.
Rick