Cannot produce grayscale PSDs

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
axelrose
Posts: 96
Joined: 2008-12-16T06:01:27-07:00

Cannot produce grayscale PSDs

Post by axelrose »

User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Cannot produce grayscale PSDs

Post by fmw42 »

The image colorspace is RGB, but all channels are gray. See Type: Grayscale below

convert rose: -colorspace gray psd:rose.psd

identify -verbose rose.psd
Image: rose.psd
Format: PSD (Adobe Photoshop bitmap)
Class: DirectClass
Geometry: 70x46+0+0
Resolution: 72x72
Print size: 0.972222x0.638889
Units: Undefined
Type: Grayscale
Base type: Grayscale
Endianess: Undefined
Colorspace: RGB
Depth: 8-bit
Channel depth:
gray: 8-bit
Channel statistics:
gray:

min: 37 (0.145098)
max: 255 (1)
mean: 105.14 (0.412313)
standard deviation: 47.3907 (0.185846)


convert rose: -type grayscale rose.pdf

produces the same results.

I don't know if either of these are bugs or not. I might expect the colorspace to be gray and in the latter to get a class of Grayscale or Palette?
Post Reply