public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Frank Peters <frank.peters@comcast.net>
To: gentoo-amd64@lists.gentoo.org
Subject: [gentoo-amd64] Ghostscript Problem - Need Verification
Date: Mon, 13 Dec 2010 17:16:20 -0500	[thread overview]
Message-ID: <20101213171620.7b175d1b.frank.peters@comcast.net> (raw)

[-- 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 --]

             reply	other threads:[~2010-12-13 23:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-13 22:16 Frank Peters [this message]
2010-12-13 23:18 ` [gentoo-amd64] Ghostscript Problem - Need Verification 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101213171620.7b175d1b.frank.peters@comcast.net \
    --to=frank.peters@comcast.net \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox