string formats for colorspace reporting wrong value IM 6.9.3.7 Q16 Mac OSX
Posted: 2016-04-07T16:23:16-07:00
.
For the image provided at viewtopic.php?f=24&t=29420#p131733
The following two commands give a colorspace of gray when it should be CMYK. NOTE I modified the filename to avoid spaces below.
DirectClass Gray
Gray
Whereas, identify -verbose says it is CMYK
Image: MAR2014_parts_English.pdf
Format: PDF (Portable Document Format)
Mime type: application/pdf
Class: DirectClass
Geometry: 612x792+0+0
Resolution: 72x72
Print size: 8.5x11
Units: Undefined
Type: ColorSeparation
Base type: ColorSeparation
Endianess: Undefined
Colorspace: CMYK
For the image provided at viewtopic.php?f=24&t=29420#p131733
The following two commands give a colorspace of gray when it should be CMYK. NOTE I modified the filename to avoid spaces below.
Code: Select all
infile="MAR2014_parts_English.pdf"
convert -ping "$infile[0]" -format "%r" info:`
Code: Select all
infile="MAR2014_parts_English.pdf[0]"
convert -ping "$infile[0]" -format "%[colorspace]" info:`
Whereas, identify -verbose says it is CMYK
Code: Select all
infile="MAR2014_parts_English.pdf[0]"
identify -verbose "$infile"
Format: PDF (Portable Document Format)
Mime type: application/pdf
Class: DirectClass
Geometry: 612x792+0+0
Resolution: 72x72
Print size: 8.5x11
Units: Undefined
Type: ColorSeparation
Base type: ColorSeparation
Endianess: Undefined
Colorspace: CMYK