tiffg4 is a black&white output device. You should use tiff24nc or tiff12nc as the output device colour PDFs - see ghostscript output devices. These will be uncompressed but you could put the resulting TIFFs through imagemagick or similar to resave as compressed TIFF.
views:
4530answers:
5
+2
A:
danio
2008-10-21 11:21:07
Thanks for the colour information. After including Philho's advice about resolution im finding my tif shooting up to 20+ megs. This is way beyond. Making use of imagemagick would reduce this?
Setori
2008-10-22 01:35:38
Yes, ImageMagick (and many other image manipulation tools) can convert uncomressed TIFF to compressed TIFF. Are you sure you need TIFF? 24-bit PNG is a pretty good choice for screen capture.
Chris Dolan
2008-10-22 03:45:34
must be tiff sadly, the whole backend system is setup for tiff, a change and the whole thing comes down kicking and screaming. Also i just found out it must be black and white... interfacing with legacy systems can be a little of a headache... pdf would be the best.
Setori
2008-10-22 08:15:05
+1
A:
It is quite nice for a fax! ;-)
danio's answer is probably the best, if you need a color copy.
I notice also, from the linked thread, that you omitted to specify DPI for the output, hence the bad look... If you need pure dithered B&W, you should use a higher resolution.
I also got a good looking image using NConvert
nconvert -page 1 -out tiff -dpi 200 -c 2 -o c.tif FMD.pdf
I mention it for the record, because I think you need a license to redistribute it (it is free for personal use otherwise).
PhiLho
2008-10-21 11:58:46
Not going with Nvonvert, it cant read my pdf document I gave it to convert
Setori
2008-10-22 01:55:56
+1
A:
Thanks guys this is what I ended up with
os.popen(' '.join([
self._ghostscriptPath + 'gswin32c.exe',
'-q',
'-dNOPAUSE',
'-dBATCH',
'-r800',
'-sDEVICE=tiffg4',
'-sPAPERSIZE=a4',
'-sOutputFile=%s %s' % (tifDest, pdfSource),
]))
Setori
2008-10-22 04:50:35
A:
jeff:
Have you ever tried the "-dDITHERPPI=<lpi>" parameter with Ghostscript? (Reasonable values for lpi are N/5 to N/20, where N is the resolution in dpi.)
pipitas
2010-06-05 18:24:09