different histogram info returned on Solaris versus Windows

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
michielv
Posts: 2
Joined: 2013-06-20T05:01:34-07:00
Authentication code: 6789

different histogram info returned on Solaris versus Windows

Post by michielv »

Hello,

If I give the following command:
convert myfile.eps -unique-colors txt:-

I get different results on Solaris and Windows for the same EPS image.

My expectation was that all values for "rgb" are equal which is the case for Windows:
# ImageMagick pixel enumeration: 58,1,65535,srgba
0,0: ( 0, 0, 0,65535) #000000000000 black
1,0: ( 771, 771, 771,65535) #030303030303 grey1
2,0: ( 1799, 1799, 1799,65535) #070707070707 srgba(7,7,7,1)
...

but not for Solaris:
# ImageMagick pixel enumeration: 57,1,65535,srgba
0,0: ( 0, 0, 0,65535) #000000000000 black
1,0: ( 514, 1542, 514,65535) #020206060202 srgba(2,6,2,1)
2,0: ( 5654, 6682, 5140,65535) #16161A1A1414 srgba(22,26,20,1)
3,0: ( 6425, 6939, 5911,65535) #19191B1B1717 srgba(25,27,23,1)
...

The Solaris version I use is: ImageMagick 6.8.5-10
The Windows version I use is: ImageMagick 6.8.5-9

Kind regards,
Michiel
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: different histogram info returned on Solaris versus Wind

Post by magick »

Its likely Ghostscript is returning different interpretations of your EPS file. ImageMagick relies on Ghostscript to render Postscript.
Coscript Consulting
Posts: 6
Joined: 2013-06-21T06:43:23-07:00
Authentication code: 6789
Location: Philadelphia, PA

Re: different histogram info returned on Solaris versus Wind

Post by Coscript Consulting »

Can I see a sample file? AFAIK, all known big endian bugs in Ghostscript have been fixed.
Please retest your file with Ghostscript 9.07.
michielv
Posts: 2
Joined: 2013-06-20T05:01:34-07:00
Authentication code: 6789

Re: different histogram info returned on Solaris versus Wind

Post by michielv »

Ok problem is solved now on Solaris with:
ImageMagick 6.8.5-10
Ghostscript 9.07
Post Reply