Bug 691211 - Gradient not smooth enough
Summary: Gradient not smooth enough
Status: NOTIFIED WORKSFORME
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Color (show other bugs)
Version: 0.00
Hardware: PC All
: P2 normal
Assignee: Michael Vrhel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-24 06:11 UTC by Marcos H. Woehrmann
Modified: 2011-09-18 21:47 UTC (History)
1 user (show)

See Also:
Customer: 536
Word Size: ---


Attachments
Photoshop.png (311.73 KB, image/png)
2010-03-24 06:13 UTC, Marcos H. Woehrmann
Details
GS.png (461.56 KB, image/png)
2010-03-24 06:13 UTC, Marcos H. Woehrmann
Details
AR9_bkrd_fade2_fv2.png (92.74 KB, image/png)
2010-03-24 17:07 UTC, Ray Johnston
Details
Comparison GS, AR and Photoshop (218.46 KB, image/png)
2010-07-07 03:23 UTC, Michael Vrhel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos H. Woehrmann 2010-03-24 06:11:33 UTC
The customer reports:

When we compared "GS" output with "Photoshop" output then there was smoothness problem. Here I have attached the output  file "GS.png" which is genereted using "GS" and "Photoshop.png" which is generated using "Photoshop" respectively.

I've verified that this occurs with head (r10959).

The command line the customer and I are using for testing:

bin/gs -sDEVICE=ppmraw -sOutputFile=test.ppm \
  -dNOPAUSE -dBATCH -dTextAlphaBits=1 \
  -dGraphicsAlphaBits=1 -dDOINTERPOLATE \
  -dUseCIEColor -sDEVICE=pngalpha \
  ./bkrd_fade2_fv2.eps
Comment 2 Marcos H. Woehrmann 2010-03-24 06:13:36 UTC
Created attachment 6118 [details]
Photoshop.png
Comment 3 Marcos H. Woehrmann 2010-03-24 06:13:50 UTC
Created attachment 6119 [details]
GS.png
Comment 4 Ray Johnston 2010-03-24 17:07:26 UTC
Created attachment 6122 [details]
AR9_bkrd_fade2_fv2.png

Interestingly, when I convert the EPS file to PNG using Adobe Acrobat 9, I see an even less smooth image than with Ghostscript (attached).
Comment 5 Ken Sharp 2010-03-24 17:22:25 UTC
Ah, as far as I can tell the EPS file doesn't contain a 'gradient', it contains an image. The image is as smooth as Photoshop makes it.

Setting /Interpolate true might make a difference if the image is scaled, and maybe -dGraphicsAlphaBits ? 

But the fact that Acrobat shows much the same image indicates to me that the lack of smoothness is in the supplied image data.
Comment 6 Ray Johnston 2010-03-25 16:44:26 UTC
We need to make sure that -dDOINTERPOLATE is working in this case, and if it is, then let Marcos know (and assign to him) to let the customer know that we do better than Acrobat which is all we can do.
Comment 7 Hin-Tak Leung 2010-03-26 19:04:18 UTC
Comment on attachment 6118 [details]
Photoshop.png

wrong mime type
Comment 8 Michael Vrhel 2010-07-07 03:23:27 UTC
Created attachment 6435 [details]
Comparison GS, AR and Photoshop

A comparison of taking the source file directly into photoshop and rescaling in photoshop to 72dpi (labeled as photoshop), saving a tiff at 72dpi from AR 9.0 (labeled Acrobat) and GS output with -dDOINTERPOLATE (No -dUseCIEColor used since the ICC CM is now used) at 72 dpi.    Note that the AR output is terrible.  GS matches the photoshop result quite well.
Comment 9 Michael Vrhel 2010-07-07 03:25:08 UTC
Based upon the above comparison, I am not seeing an issue here.  Closing for support to handle from here.
Comment 10 Marcos H. Woehrmann 2011-09-18 21:47:18 UTC
Changing customer bugs that have been resolved more than a year ago to closed.