[gs-bugs] [Bug 691209] PS->PDF->PNG results in lines PS->PNG does not

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Wed Jun 1 14:49:46 UTC 2011


Ken Sharp <ken.sharp at artifex.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #16 from Ken Sharp <ken.sharp at artifex.com> 2011-06-01 14:49:44 UTC ---
(In reply to comment #15)
> We ( customer 870 ) had the same problem. I tested the new idiom and it worked
> fine. But with the attached file tiff.ps a stackunderflow occures.

This IdiomSet is supplied as-is, and does not form part of Ghostscript. As such
we don't really want to do any further development or maintenance on it.


The original Idiom assumes an RGB image, this one is in DeviceGray. So it only
supplies one parameter to scol, not three, leading to a stackunderflow while
trying to get the remaining parameters.

You can extend the idiom to test the current colour space in the replacement
for /scol and retrieve a different number of parameters from the stack
depending on the colour space. You would then also need to test the colour
space in the replacement for /Y in order to provide the correct number of
components for the current space before calling setcolor.

    {pop /IdiomB exch def /IdiomG exch def /IdiomR exch def IdiomR IdiomG
IdiomB setcolor} bind

    newpath IdiomR IdiomG IdiomB setcolor

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list