Bug 688516

Summary: Grayscale image lost at 300 dpi
Product: Ghostscript Reporter: Franjo <fmarkovic>
Component: Graphics LibraryAssignee: Stefan Kemper <stefan.kemper>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: P4    
Version: 8.53   
Hardware: PC   
OS: Windows XP   
Customer: Word Size: ---
Attachments: input file

Description Franjo 2006-01-27 11:35:06 UTC
using the following command line:

gswin32c -sDEVICE=jpeg -sOutputFile=c:\temp\print\res1.jpg -q -dBATCH -r300
-dNOPAUSE  c:\temp\nem.pdf

the result is BLANK jpg file. It is the same with tiffgray and tiffg4 driver
too. 72, 200 or 600 dpi results look ok. With 301 resolution I got ugly big
black and white squares ?!
Comment 1 Franjo 2006-01-27 11:35:33 UTC
Created attachment 1957 [details]
input file
Comment 2 Alex Cherepanov 2006-01-28 17:24:09 UTC
The sample file contains a single halftoned image.

q 0.24 0 0 0.24 0 0 cm
/R7 gs
q 0 1054.5 -2250 0 2400 150.004 cm
BI
/CS/G
/W 2109
/H 4500
/BPC 8
/F/Fl
/DP<</Predictor 15
/Columns 2109>>
ID
....
EI

When the image is subsampled the results depend on the relative phases of
the halftone cells on the inage and the sampling function. For instance, 
the inage looks great at 600 dpi.
Comment 3 Ray Johnston 2006-02-01 09:47:11 UTC
-dDOINTERPOLATE allows this to work. 
 
THis is similar to bug 493348. 
 
Since this workaround lets it work and we already have an open bug, we 
will mark this as a duplicate. 

*** This bug has been marked as a duplicate of 493348 ***