public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] Ghostscript Problem - Need Verification
@ 2010-12-13 22:16 Frank Peters
  2010-12-13 23:18 ` Mark Knecht
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Frank Peters @ 2010-12-13 22:16 UTC (permalink / raw
  To: gentoo-amd64

[-- Attachment #1: Type: text/plain, Size: 2333 bytes --]

I have noticed a severe problem with ghostscript.  A bug report was filed
with the ghostscript upstream maintainers, but, surprisingly (to me at least)
no one could reproduce the problem.  This may indicate that the problem is
unique to Gentoo ghostscript or that something strange is happening in my
system.  What I need is verification from other Gentoo users.

The problem concerns the ghostscript raster drivers such as PGM, TIFF, PNG,
etc.  Whenever a certain resolution (the exact value depends on the driver)
is exceeded, the output for any embedded images in the PostScript file is all
black.  Text is rendered without problem, but if an image is inserted into
the document, say with OpenOffice, the image is rendered all black (above certain
resolutions).

Why do I use these raster drivers?

There can be a need to use them on occasion, but, more significantly, I print
documents with the ghostscript IJS driver from Hewlett-Packard.  Ghostscript must
supply some kind of raster to the IJS driver because any embedded images are printed
all black.  The problem therefore probably extends beyond the raster drivers
themselves.

Attached is a sample PostScript file, image-test.ps.  With a PostScript viewer
such as gv or gsview, the image is clearly visible.  If some Gentoo user could
render this file into a PGM format using the following command and then report the
results, it would be very helpful to me.

gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pgm -r380 -sOutputFile=image-test.pgm image.ps

Viewing the resulting image file with an image viewer such as display from ImageMagick
(display -resize 25% image-test.pgm) should show an all white page with an all black
rectangle in place of the central image.

Interestingly, if the resolution in the above command is changed to 300dpi (-r300)
the raster driver renders the image correctly. I found the exact cut-off value
to be 326.

The same behavior applies to the TIFF and PNG drivers although at different
cut-off resolution values for each driver. However, the fax drivers, tiffg3,
and the pbm driver seem unaffected.

If someone can verify this problem, then Gentoo ghostscript must be the fault.
If no one else can reproduce the issue then I am somehow in possession of a
jinxed system (although the same problem exists on both of my Gentoo machines).

Frank Peters

[-- Attachment #2: image-test.ps --]
[-- Type: application/postscript, Size: 13058 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-14  4:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-13 22:16 [gentoo-amd64] Ghostscript Problem - Need Verification Frank Peters
2010-12-13 23:18 ` Mark Knecht
2010-12-13 23:27 ` Randy Barlow
2010-12-13 23:54 ` malc
2010-12-14  1:03   ` Frank Peters
2010-12-14  2:12   ` [gentoo-amd64] Ghostscript Problem - Need Verification [SOLVED] Frank Peters
2010-12-14  3:41     ` Barry Schwartz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox