Page 1 of 1

import -label not working in 6.x

Posted: 2011-02-25T06:48:14-07:00
by RonaldV
I am upgrading an old system which uses version 5.3.8 09/01/01 Q:16 on a 2.4 linux kernel.
I found that the old script which uses -label does not work anymore with version 6.6.7-9 on a 2.6 kernel
Version 5.5.7 is ok but from 6.0.0-7 it is not, both on 2.6
What I want is a label besides the captured window. The command I use is:

Code: Select all

 import -window root -label "This is a label" ps:- file.ps
In the resulting postscript file the label string can be found near line 270 in version 5.5.7

Code: Select all

%%EndProlog
%%Page:  1 1
%%PageBoundingBox: 0 24 612 278
%%%%PageResources: font Times-Roman
DisplayImage
0 24
612 230
12.000000
This is a label
3200 1200
0
0 
CFD9E4CFD9E4CFD9E4CFD9E4CFD9E4CFD9E4CFD9E4CFD9E4CFD9E4CFD9E4CFD9E4CFD9E4
Is this a bug in version 6.x or am I doing something wrong ?

Re: import -label not working in 6.x

Posted: 2011-02-25T17:20:36-07:00
by anthony
-label does NOT add a visible label to an image, it adds a label meta-data element! The same goes for comment and caption which are also meta-data attributes of an image.

To add a visible label you either need to draw on the image or append a label...
See Annotating Images
http://www.imagemagick.org/Usage/annotating/