PICT size wrongly identified when using 'convert/identify' ?

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
spark

PICT size wrongly identified when using 'convert/identify' ?

Post by spark »

Hi,

I'm trying to use ImageMagick (6.5.6-10) for QuickDraw PICT conversion (to .jpg). Using the command line 'convert', it seems that the PICT image size is wrongly identified (145x62) - when it really is 1386x887. The resulting is a JPEG file which is just a small white rectangle - which could or could not be the top left part of the original image.

Any idea why this is happening ?
The image can be found at http://dl.getdropbox.com/u/114047/layout.pct

Thanks,

David

identify -verbose layout.pct
Image: layout.pct
Format: PICT (Apple Macintosh QuickDraw/PICT)
Class: DirectClass
Geometry: 145x62+0+0
Resolution: 72x72
Print size: 2.01389x0.861111
Units: Undefined
Type: Bilevel
Base type: Bilevel
Endianess: Undefined
Colorspace: RGB
Depth: 8/1-bit
Channel depth:
gray: 1-bit
Channel statistics:
gray:
min: 255 (1)
max: 255 (1)
mean: 255 (1)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
Histogram:
8990: (255,255,255) #FFFFFF white
Rendering intent: Undefined
Interlace: None
Background color: white
Border color: rgb(223,223,223)
Matte color: grey74
Transparent color: black
Page geometry: 145x62+0+0
Dispose: Undefined
Iterations: 0
Compression: Undefined
Orientation: Undefined
Properties:
date:create: 2009-10-14T14:54:46-05:00
date:modify: 2009-10-09T11:11:41-05:00
signature: e63914262fee765684f8817b727c7675e9c0d64fd4fc8476d46f71dd450f203c
Artifacts:
verbose: true
Tainted: False
Filesize: 171KiB
Number pixels: 8.78KiB
Pixels per second: 81.7636TiB
User time: 0.000u
Elapsed time: 0:01.000
Version: ImageMagick 6.5.6-10 2009-10-14 Q16 http://www.imagemagick.org
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: PICT size wrongly identified when using 'convert/identify' ?

Post by fmw42 »

I downloaded your file on my IM 6.5.6-10 Q16 (Mac OSX Tiger) and got the correct size:

identify -verbose layout.pct
Image: layout.pct
Format: PICT (Apple Macintosh QuickDraw/PICT)
Class: DirectClass
Geometry: 1386x887+0+0
...
Page geometry: 1386x887+0+0
...
spark

Re: PICT size wrongly identified when using 'convert/identify' ?

Post by spark »

Sorry - I'm using IM 6.5.6-10 built from sources, on Enterprise RedHat linux 4.
Could there be any differences ?
Post Reply