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