identify does not recognize Color Spaces properly

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.
pauloney
Posts: 22
Joined: 2016-11-02T15:40:36-07:00
Authentication code: 1151

Re: identify does not recognize Color Spaces properly

Post by pauloney »

Fred, I have not upgraded IM. I am running the stock installation from Ubuntu.

Code: Select all

$ convert --version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2016-06-01 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: identify does not recognize Color Spaces properly

Post by fmw42 »

It bothers me that gs is not showing in the list. Though on windows it never shows. On my mac and I thought other unix systems it would show.

What do you get from

convert -list configure | grep "DELEGATES"

Does it show there?
pauloney
Posts: 22
Joined: 2016-11-02T15:40:36-07:00
Authentication code: 1151

Re: identify does not recognize Color Spaces properly

Post by pauloney »

I get:

Code: Select all

$ convert -list configure | grep "DELEGATES"
DELEGATES      bzlib djvu mpeg fftw fontconfig freetype jbig jng jpeg lcms lqr lzma openexr pango png ps rsvg tiff wmf x xml zlib
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: identify does not recognize Color Spaces properly

Post by fmw42 »

Interesting, but I still do not see gs listed.

What do you get from

Code: Select all

convert logo: logo.pdf
convert logo.pdf logo.jpg
pauloney
Posts: 22
Joined: 2016-11-02T15:40:36-07:00
Authentication code: 1151

Re: identify does not recognize Color Spaces properly

Post by pauloney »

I imagine you want the verbose on the second command, no?

Code: Select all

$ convert logo: logo.pdf
$ convert -verbose logo.pdf logo.jpg
"gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72"  "-sOutputFile=/tmp/magick-8193lrfH5iBI1Swr%d" "-f/tmp/magick-8193FCjFNZi7bPoG" "-f/tmp/magick-8193e6-Xz5kAbUgV"
/tmp/magick-8193lrfH5iBI1Swr1 PNG 640x480 640x480+0+0 8-bit sRGB 75.1KB 0.010u 0:00.009
logo.pdf PNG 640x480 640x480+0+0 16-bit sRGB 75.1KB 0.000u 0:00.010
logo.pdf=>logo.jpg PNG 640x480 640x480+0+0 16-bit sRGB 46.6KB 0.010u 0:00.009
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: identify does not recognize Color Spaces properly

Post by fmw42 »

OK. So although it does not show up in your list of delegates, it does work and still thinks the PDF is PNG.

Mine show PDF and not PNG for the input:

Code: Select all

convert -verbose logo.pdf logo.jpg
/var/tmp/magick-241vPkxt0vMHhVU1 PNG 640x480 640x480+0+0 8-bit sRGB 72.7KB 0.040u 0:00.039
logo.pdf PDF 640x480 640x480+0+0 16-bit sRGB 72.7KB 0.020u 0:00.019
logo.pdf=>logo.jpg PDF 640x480 640x480+0+0 16-bit sRGB 60.1KB 0.050u 0:00.059
[ghostscript library 9.16] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72'  '-sOutputFile=/var/tmp/magick-241vPkxt0vMHhVU%d' '-f/var/tmp/magick-241edAWWRzqsjAU' '-f/var/tmp/magick-2419t4tnaZn2HwM'

In my opinion, something seems clearly wrong with your IM or ghostscript.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: identify does not recognize Color Spaces properly

Post by fmw42 »

I recompiles IM 6899 and ran the same identify command and it does show PNG.

Code: Select all

im6899 convert -verbose logo.pdf logo.jpg
/var/tmp/magick-50119t0121QUzsy1N1 PNG 640x480 640x480+0+0 8-bit sRGB 72.7KB 0.010u 0:00.019
logo.pdf PNG 640x480 640x480+0+0 16-bit sRGB 72.7KB 0.000u 0:00.000
logo.pdf=>logo.jpg PNG 640x480 640x480+0+0 16-bit sRGB 44.6KB 0.010u 0:00.009
[ghostscript library] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72"  "-sOutputFile=/var/tmp/magick-50119t0121QUzsy1N%d" "-f/var/tmp/magick-501193WeOSeUabRzf" "-f/var/tmp/magick-50119Mm9ecwqcTxdq
So it must be a factor of that version of IM, which may have a bug. The IM developers would have to say for sure.

Perhaps the older systems were reporting the raster type for imbedded raster images in the PDF shell?
pauloney
Posts: 22
Joined: 2016-11-02T15:40:36-07:00
Authentication code: 1151

Re: identify does not recognize Color Spaces properly

Post by pauloney »

Any updates on the situation of this bug?
Post Reply