import -label not working in 6.x

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
RonaldV
Posts: 2
Joined: 2011-02-25T06:19:32-07:00
Authentication code: 8675308

import -label not working in 6.x

Post 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 ?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: import -label not working in 6.x

Post 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/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply