percent excape access to globel varible fails
Posted: 2010-09-20T19:52:35-07:00
This example use to work (create a label containing a color from a different image)
the -set sets a global 'artifact' (like -define but with percent escapes) that should be --- global.
However label: can not see that global artifact any more. I get a label of just "test " and without
the artifact string. The above used to work, but now does not.
But when I tried the equivelent...
It works!!!!
Using
shows that for the first case shows that a Artifact is created but only for the first image the 'global' artifact, but that 'global' setting is missing from the new label image.
And yet
has the artifact in BOTH images!
In summery: -set option:key value should be the same as -define key=value but the above shows that it isn't!
Code: Select all
convert rose: -set option:mylabel '%[pixel:u[0].p{12,26}]' label:'test %[mylabel]' -delete 0 color.png
However label: can not see that global artifact any more. I get a label of just "test " and without
the artifact string. The above used to work, but now does not.
But when I tried the equivelent...
Code: Select all
convert rose: -define mylabel=rose label:'test %[mylabel]' -delete 0 color.png
Using
Code: Select all
convert rose: -set option:mylabel '%[pixel:u[0].p{12,26}]' label:'test %[mylabel]' -verbose info:
And yet
Code: Select all
convert rose: -define mylabel=rose label:'test %[mylabel]' -verbose info:
In summery: -set option:key value should be the same as -define key=value but the above shows that it isn't!