Bug 692625 - pdf -> png colors rendered differently depending on resolution
Summary: pdf -> png colors rendered differently depending on resolution
Status: RESOLVED WORKSFORME
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Color (show other bugs)
Version: 9.04
Hardware: PC Linux
: P4 normal
Assignee: Marcos H. Woehrmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-22 14:26 UTC by matteosistisette
Modified: 2011-11-27 03:10 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
lower resolution (73.03 KB, image/png)
2011-10-22 14:27 UTC, matteosistisette
Details
higher resolution (510.41 KB, image/png)
2011-10-22 14:29 UTC, matteosistisette
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matteosistisette 2011-10-22 14:26:47 UTC
See attachments: they are from the very same pdf rendered into png with different resolutions. As you can notice, colors are different, even where antialiasing can't explain that.

I think the colors of the higher resolution rendering are the right ones.

This gs totally unreliable and hence practically useless for any vector-to-bitmap use.
Comment 1 matteosistisette 2011-10-22 14:27:32 UTC
Created attachment 8037 [details]
lower resolution
Comment 2 matteosistisette 2011-10-22 14:29:37 UTC
Created attachment 8038 [details]
higher resolution

I had already attached this to the report but somehow it disappeared, so here it is again
Comment 3 Michael Vrhel 2011-10-22 15:03:15 UTC
Please attach the source PDF file and check also if this is fixed in trunk.  There was a resolution dependency recently fixed for the pngalpha device.  Not sure which png device you are testing with.  Please include the command line.
Comment 4 matteosistisette 2011-10-22 15:14:04 UTC
Here's the command line:
./gs-904-linux_x86 -dNOPAUSE -dBATCH -dUseCropBox -sDEVICE=pngalpha -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -rXXXX -sOutputFile=output.png input.pdf7

The pdf is huge, I can't attach it, but I think this would happen with just any pdf.

I think I experienced the same with png16m as well (almost sure).

I'm using the binary I downloaded from here: http://downloads.ghostscript.com/public/binaries/ghostscript-9.04-linux-x86.tgz

Is it supposed to include the fix you mention?
Comment 5 Michael Vrhel 2011-10-22 20:39:53 UTC
No that will not include the recent fix.   Actual commit was 

http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=5ce12e824d7e4cb5e54f8ba730cbf6939d20834e