When I take an opaque image with no alpha channel and convert to pdf format, the result contains an opaque alpha channel and insists on being 16 bit, even though I add -depth 8 -alpha off. Using GS 9.16
Is this a limitation of Ghostscript or Imagemagick?
For example:
Logo:
Code: Select all
Image: LOGO
Base filename:
Format: GIF (CompuServe graphics interchange format)
Mime type: image/gif
Class: PseudoClass
Geometry: 640x480+0+0
Units: Undefined
Type: Palette
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Pixels: 307200
Red:
min: 4 (0.0156863)
max: 255 (1)
mean: 229.323 (0.899307)
standard deviation: 69.3423 (0.271931)
kurtosis: 4.45973
skewness: -2.49768
entropy: 0.186315
Green:
min: 0 (0)
max: 255 (1)
mean: 226.217 (0.887127)
standard deviation: 70.8689 (0.277917)
kurtosis: 3.37246
skewness: -2.24758
entropy: 0.203574
Blue:
min: 0 (0)
max: 255 (1)
mean: 229.064 (0.898288)
standard deviation: 64.1018 (0.251379)
kurtosis: 4.65272
skewness: -2.42185
entropy: 0.206184
convert logo: -alpha off -depth 8 logo.pdf
Code: Select all
Image: logo.pdf
Format: PDF (Portable Document Format)
Mime type: application/pdf
Class: DirectClass
Geometry: 640x480+0+0
Resolution: 72x72
Print size: 8.88889x6.66667
Units: Undefined
Type: PaletteAlpha
Endianess: Undefined
Colorspace: sRGB
Depth: 16/8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
alpha: 1-bit
Channel statistics:
Pixels: 307200
Red:
min: 1028 (0.0156863)
max: 65535 (1)
mean: 58936.1 (0.899307)
standard deviation: 17821 (0.271931)
kurtosis: 4.45973
skewness: -2.49768
entropy: 0.186315
Green:
min: 0 (0)
max: 65535 (1)
mean: 58137.8 (0.887127)
standard deviation: 18213.3 (0.277917)
kurtosis: 3.37246
skewness: -2.24758
entropy: 0.203574
Blue:
min: 0 (0)
max: 65535 (1)
mean: 58869.3 (0.898288)
standard deviation: 16474.2 (0.251379)
kurtosis: 4.65272
skewness: -2.42185
entropy: 0.206184
Alpha:
min: 65535 (1)
max: 65535 (1)
mean: 65535 (1)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
entropy: 0