Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Converting office documents to image format

89 views
Skip to first unread message

Ali

unread,
Apr 5, 2005, 8:36:13 AM4/5/05
to
Hi,
I want to develop a wrapper for ghost script to convert office
documents to required image format. I am already done with designing a
wrapper for ghostscript interpreter while reducing the complex command
lines ,wrapper application implements easy to use interface for
printing
system. Client applications don't have to indulge in deep printing
system with complex commands. wrapper provides smart and well managed
developer interface for integration.
It works fine with ps or pdf files as input files but when i try to
give office document as an input file then ghostscript prompts me
following error:
Current allocation mode is local
Current file position is 9
GPL Ghostscript 8.15: Unrecoverable error, exit code 1

I do understand that first i have to convert doc file to ps and then
feed it to mr. ghostscript interpreter but don't know how? any idea.

Thanks in advance.
<abdulrazaq/>

Bob Babcock

unread,
Apr 5, 2005, 9:37:37 PM4/5/05
to
"Ali" <abdul...@gmail.com> wrote in
news:1112704573....@l41g2000cwc.googlegroups.com:

> I want to develop a wrapper for ghost script to convert office
> documents to required image format.

...


> I do understand that first i have to convert doc file to ps and then
> feed it to mr. ghostscript interpreter but don't know how? any idea.

Here's a summary of how I do this followed by some details. Install redmon
to enable creation of a redirected port. Print to a postscript printer
on the redirected port to make postscript. Use redrun in the settings for
the redirected port to feed the output to a batch file which prompts for
desired format and resolution and runs Ghostscript. Finally, feed the
output to Irfanview for cropping and possible format conversion.

Redmon and redrun are from
http://www.cs.wisc.edu/~ghost/redmon/index.htm

The printer driver I use is for a Tektronix Phaser 840, but others will
probably work. I've tested this with Win/2K and Win/XP.

Configuration for the redirected port (paths will vary):
Redirect to: D:\App\Util\redrun.exe
Arguments: cmd /c start cmd /c d:\app\util\print-to-graphics.bat %1
(This may seem strange, but is necessary to allow user interaction
with the batch file)
Output: Program handles output
Run: Normal
Runs as user: checked

Paths in print-to-graphics.bat will need to be adjust to match where you
install things. Choice.com or .exe is missing from some versions of
Windows, but can be found in the various Microsoft Resource Kits or older
versions of Windows or DOS. The gswin32c line below has been wrapped.

---------------- contents of print-to-graphics.bat
@echo off
rem print-to-graphics.bat - called by redrun from redirected printer port
rem to create a graphics file.

rem Rename the input file because otherwise it gets deleted too soon
ren %1 foo.ps

rem Get path from original file name
for %%I in (%1) do set tpath=%%~dpI

echo 1 - Monochrome bitmap (bmpmono)
echo 2 - Grayscale bitmap (bmpgray)
echo 3 - 16-color bitmap (bmp16)
echo 4 - 256-color bitmap (bmp256)
echo 5 - 16-million color bitmap (bmp16m)
echo 6 - Tiff 24-bit color (tiff24nc)
echo 7 - Jpeg (jpeg)
echo Q - Quit
d:\app\util\choice /c:1234567Q /n "Pick graphics type: "
if errorlevel 8 goto :Done
set ft=bmp
if errorlevel 1 set dev=bmpmono
if errorlevel 2 set dev=bmpgray
if errorlevel 3 set dev=bmp16
if errorlevel 4 set dev=bmp256
if errorlevel 5 set dev=bmp16m
if errorlevel 6 set dev=tiff24nc
if errorlevel 6 set ft=tif
if errorlevel 7 set dev=jpeg
if errorlevel 7 set ft=jpg

echo.
echo Resolution is in DPI (dots per inch)
echo 300 is a reasonable value to try
echo File size will be proportional to the square of this number
set /p res=Enter resolution:

D:\App\Ghost\gs8.00\bin\gswin32c.exe -sOutputFile="%temp%\foo.%ft%"
-ID:\App\Ghost\gs8.00\lib;D:\App\Ghost\fonts -sDEVICE=%dev% -dNOPAUSE
-dSAFER -r%res% -dEPSCrop %tpath%foo.ps -c quit
echo.
echo.
echo.
echo.
echo Crop image as needed and save somewhere other than %temp%\foo.%ft%

rem Fire up Irfanview to crop and save image, then delete original
D:\app\Irfanview\i_view32 "%temp%\foo.%ft%"
del "%temp%\foo.%ft%"

:Done
del %tpath%foo.ps
exit
---------------- end of print-to-graphics.bat

Ali

unread,
Apr 8, 2005, 6:22:59 AM4/8/05
to
Hi Bob,
Sorry for replying so late i can't understand why my office
machine won't let open gmail:)

Wao your solution is exact what i need and i believe that it is in fact
the best free solution.
Sure we can configure redmon as port moniter to capture the stream from
GDI and winspooler and at the same time i can call my GhostScript
wrapper EasyConverter.exe to print the required format. But i want to
automate whole system packaging all stuff in single installer (
gswin32c.exe , redmon.exe , easyconverter , help files etc. ).
I don't expect from user that he or she will configure port correctly
because i remember Russel(Author of redmon) saying that configuring
redmon is not an easy job.

I am having little R&D on PDFCreator Project hosted by
sourceforge.PDFCreator also uses almost same products but ugly thing is
that it is coded in VB 6 though i am good in VB 6 too but i'm looking
for solution in C++ because of platform dependent issue.

My abstraction for EasyConverter Image Print Driver:

Usage: User can print any document to gs provided formats from almost
all applications from file->print menu or any client application
interfacing EasyConverter via commandline or xml file.
Problems: How we can have ps files to feed the GS via EasyConverter
doc to ps , txt to ps , html to ps etc.
Abstraction
1) EaseyConverter is designed to be called with _stdcall convention ,
it simply accepts comandline parameters or xml configfuration file
from client application and then with some addition passes commands
down to gs , for example:
c:\>EaseConverter.exe c:\input.ps c:\output.tif tif
Above commandline parameters will print tif file on c drive.
2) We can configure a postscript printer provided by windows with batch
file via PrintUI or we can have a C++ solution for adding port,
installing printer and configuring printer driver.
3) Writing a installer script to compile all the things in single exe
or msi package for windows, it can be done with install shield or inno
installer.
I know how to write installer script , add port and printer but don't
have any idea about configuring printer driver i'm talking about the
same thing which you are saying for redmon configuration.
" Bob-> Paths in print-to-graphics.bat will need to be adjust to match
where you
install things. " is there any programmatic way to do this?

I appreciate your time and cool suggestions.
<ali />

Bob Babcock

unread,
Apr 8, 2005, 9:29:44 PM4/8/05
to
"Ali" <abdul...@gmail.com> wrote in
news:1112955779....@g14g2000cwa.googlegroups.com:

> I don't expect from user that he or she will configure port correctly
> because i remember Russel(Author of redmon) saying that configuring
> redmon is not an easy job.

I do remember having problems the first time I used it. It's one of those
things where a small error can make it fail with no hint as to what is
wrong. I see the parameters for the redirected port at

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Redirect
ed Port\Ports\RPT1:

maybe you can use a .reg file to get the values in.

> " Bob-> Paths in print-to-graphics.bat will need to be adjust to match
> where you
> install things. " is there any programmatic way to do this?

It's easy if you can enforce standard paths for all of the pieces.
Otherwise, your installer has to figure out where things are and edit the
batch file. I wrote this mostly for work, but I've only installed it for a
few users, so I haven't attempted to automate the install. In other
install scripts, I use a stream editor to change things on the fly.
Usually it's just a drive letter. I use CHANGE.EXE by Bruce Guthrie, U.S.
Dept of Commerce (Google for change.exe Bruce Guthrie). If you have a unix
background, you might want to use sed.

I wish you luck writing an installer for this stuff to be run by an end
user.

Ali

unread,
Apr 9, 2005, 4:44:20 PM4/9/05
to
Hi Bob,
Good to know that you are very proficent in this kind of
stuff and now i'm some how sure that i'm gonna make it happen because
i'm talking to right person:)


I have develped a small vb 6 project to install Printer moniter ,
printerr port , printer driver. I can see my mrdriver in windows
"printers and faxes" folder and when i select my printer for
opening its properties then i can see it's port configuration set to
following.
Redirect this port to the program : E:\VBPrinter\mrdriver\mydriver.exe

As far i'm concern i think printer is installed properly and its
registry path is set to :
Key Name: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003
\Control\Print\Monitors\mrdriver\Ports\mrdriver

Its command argument are set to "E:\VBPrinter\mrdriver\mydriver.exe"
you can see details of driver's registry at the end of this post. I
expect that a msgbox should come up while greeting(for testing purpose
so i would integrate rest of the logic if it really works) me:) but
spooler reports me an error saying that "The document fail to print."
when i select my mrdirver from a text editor.

Hope to listen soon from you!
Cheers.
<ALI />
Details of my printer driver in windows registry , i'm using windows
XP.
Key Name: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003
\Control\Print\Monitors\mrdriver\Ports\mrdriver

Class Name: <NO CLASS>
Last Write Time: 4/10/2005 - 1:02 AM
Value 0
Name: Arguments
Type: REG_SZ
Data: -PmydriverPRINTER

Value 1
Name: Command
Type: REG_SZ
Data: E:\MyVBPrinter\mrdriver\mydriver.exe

Value 2
Name: Delay
Type: REG_DWORD
Data: 0x12c

Value 3
Name: Description
Type: REG_SZ
Data: Redirected Port

Value 4
Name: LogFileDebug
Type: REG_DWORD
Data: 0x0

Value 5
Name: LogFileName
Type: REG_SZ
Data:

Value 6
Name: LogFileUse
Type: REG_DWORD
Data: 0x0

Value 7
Name: Output
Type: REG_DWORD
Data: 0x0

Value 8
Name: Printer
Type: REG_SZ
Data: mrdriver

Value 9
Name: PrintError
Type: REG_DWORD
Data: 0x0

Value 10
Name: RunUser
Type: REG_DWORD
Data: 0x0

Value 11
Name: ShowWindow
Type: REG_DWORD
Data: 0x0

Ali

unread,
Apr 9, 2005, 4:45:49 PM4/9/05
to
CHANGE.EXE is really cool gadget for text replacement.

Bob Babcock

unread,
Apr 10, 2005, 1:35:45 AM4/10/05
to
"Ali" <abdul...@gmail.com> wrote in
news:1113079460....@l41g2000cwc.googlegroups.com:

> Redirect this port to the program : E:\VBPrinter\mrdriver\mydriver.exe

...


> Its command argument are set to "E:\VBPrinter\mrdriver\mydriver.exe"
> you can see details of driver's registry at the end of this post. I
> expect that a msgbox should come up while greeting(for testing purpose
> so i would integrate rest of the logic if it really works) me:) but
> spooler reports me an error saying that "The document fail to print."
> when i select my mrdirver from a text editor.

I don't see anything obviously wrong. What happens if you redirect to
NOTEPAD.EXE instead of mydriver.exe? I tried this and Notepad opened up
(and the spooler did not complain). If Notepad works, the problem is with
mydriver.exe; if not, it's with the redmon setup. One possiblity that I
can think of is that mydriver.exe might need some DLLs which are not found
when running in the context of the print spooler. I did try redirecting
to a VB6 program and it opened up, so VB6 can be used here.

Another thing to try would be to enable the log file in the redirected port
settings. Maybe an error message will make it into the log.

Ali

unread,
Apr 10, 2005, 10:24:17 AM4/10/05
to
>What happens if you redirect to
>NOTEPAD.EXE instead of mydriver.exe?
I have changed
redirect this port to program : notepad.exe
Now when i select my driver from notepad or word pad a new instance of
notepad come up with "Untitled"caption and ther ae no errors from
spooler.(Then why i can't load mydriver.exe even i am providing the
simplest path C:\mrdiver.exe to avoide and possible collision)

> If Notepad works, the problem is with mydriver.exe; if not, it's with
the redmon setup.

Yes its working fine in notepad case. i have palced redmonnt.dll file
in C:\WINDOWS\system32 directory and other are in thier regarding
directories
C:\WINDOWS\system32\spool\drivers\w32x86
C:\WINDOWS\system32\spool\drivers\w32x86\3
Following is my install configuration of mydriver for driver info type
3 structure.
Dim DI3 As DRIVER_INFO_3
With DI3
.pName = DriverName & vbNullString
.cVersion = 1
.pConfigFile = Driverpath & "PS5UI.DLL" & vbNullString
.pDataFile = Driverpath & "ADPDF6.PPD" & vbNullString
.pDriverPath = Driverpath & "PSCRIPT5.DLL" & vbNullString
.pEnvironment = vbNullString
.pHelpFile = Driverpath & "PSCRIPT.HLP" & vbNullString
.pDependentFiles = Driverpath & "PSCRIPT5.DLL" & vbNullString &
vbNullString
End with

>One possiblity that I can think of is that mydriver.exe might need
some DLLs which are >not found when running in the context of the print
spooler.

I have coded mrdirver.exe myself and there is no winspooler api code ,
i can send you project file of mrdriver if you want me to do so:) it is
simple project.

Following is log file for mydriver.
RedMon - Redirection Port Monitor
Copyright (C) 1997-2001, Ghostgum Software Pty Ltd. All Rights
Reserved.
2001-10-28 Version 1.7
Environment:
ALLUSERSPROFILE=C:\Documents and Settings\All Users
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=KAKA
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
INCLUDE=C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\include\
LIB=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 1, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0801
ProgramFiles=C:\Program Files
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\WINDOWS\TEMP
TMP=C:\WINDOWS\TEMP
USERPROFILE=C:\Documents and Settings\LocalService
VS71COMNTOOLS=C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\
windir=C:\WINDOWS
REDMON_PORT=mrdriver
REDMON_JOB=8
REDMON_PRINTER=My Paa Driver
REDMON_MACHINE=\\KAKA
REDMON_USER=ali
REDMON_DOCNAME=HK.txt - Notepad
REDMON_FILENAME=
REDMON_SESSIONID=0

StartDocPort: failed to start process
Port = mrdriver
Command = "C:\mydriver.exe"
Error = 2
File not found
The system cannot find the file specified.

REDMON StartDocPort: returning 0
"C:\mydriver.exe"
Printer=My Paa Driver
JobId=8
Level=1
DocumentName="HK.txt - Notepad"
OutputFile="mrdriver"
Datatype="(null)"
output=0 show=0 delay=300 runuser=0

Bob Babcock

unread,
Apr 11, 2005, 1:45:22 AM4/11/05
to
"Ali" <abdul...@gmail.com> wrote in
news:1113143057.2...@f14g2000cwb.googlegroups.com:

> Now when i select my driver from notepad or word pad a new instance of
> notepad come up with "Untitled"caption and ther ae no errors from
> spooler.(Then why i can't load mydriver.exe even i am providing the
> simplest path C:\mrdiver.exe to avoide and possible collision)

...


> INCLUDE=C:\Program Files\Microsoft Visual Studio .NET
> 2003\SDK\v1.1\include\

...


> StartDocPort: failed to start process
> Port = mrdriver
> Command = "C:\mydriver.exe"
> Error = 2
> File not found
> The system cannot find the file specified.

Looks like you are using Visual Studio .NET. I don't have anything newer
than Visual Studio 6, so I can't offer much help. The file not found
message in the log file is probably the problem; sure would be nice if it
told you what file it couldn't find. It could be some .net dll I suppose.
Does VS.net have the dependency walker that comes with Visual C++ 6? One
thing that makes it hard is that, as far as I can tell, there's no way to
run a debugger.

Ali

unread,
Apr 11, 2005, 3:58:14 AM4/11/05
to

> Looks like you are using Visual Studio .NET. I don't have anything
newer
> than Visual Studio 6, so I can't offer much help.
I have nothing to do with MS Studio.net and i dont' think that its
installation can cause problem.

> Does VS.net have the dependency walker that comes with Visual C++ 6?
One
> thing that makes it hard is that, as far as I can tell, there's no
way to
> run a debugger.

Yes there is dependency walker available with .net framework.
Bob i'll not give up unless i make this thing work. I don't how but i
know that it should work!
Do you want me to send mrdriver source which is written in vb 6 , its
really very small project to add monitor , printer and printer driver.

I appreciate your time.
Best Regards.

Bob Babcock

unread,
Apr 11, 2005, 9:31:18 PM4/11/05
to
"Ali" <abdul...@gmail.com> wrote in
news:1113206294.2...@o13g2000cwo.googlegroups.com:

> Do you want me to send mrdriver source which is written in vb 6 , its
> really very small project to add monitor , printer and printer driver.

OK, remove nospam from my posting email address. I still have to finish
doing taxes, so I may not be able to look at it for a few days.

Ali

unread,
Apr 12, 2005, 4:01:43 AM4/12/05
to
Ok i'll send you mrdriver vb 6 project as soon as i get back from my
office. I have tried to send you a test email while removing dots and
nospam from your email but its not working? can you send me an email to
my gmail account abdulrazaq@

Ali

unread,
Apr 16, 2005, 10:42:30 PM4/16/05
to
This post cintains good conversation about postscript driver and tiff
foramt compression issue. Any one interested in mrdriver source code
can ask me.

Bob i'll reply you in short time,
Regards.

_____________________________________
From: Ali

Date: Apr 15, 2005 12:44 AM
Subject: Re: Converting office documents to image format

Bob i can produce all formats with good file size and visibility but
i don't know why my tiff color devices are not working correctly , the
tif i produce with tiff24nc device results in very big size . My single
page image can have size more than 10 MB, Do you have any idea why its
size is so big.
________________________________________
From: Bob Babcock
Date: Apr 17, 2005 1:10 AM
Subject: Re: Converting office documents to image format


> I'm attaching my printer driver project with this email , hope you'll
spend
> few minutes to see its working in your free time.

I setup a Microsoft Virtual PC with a fresh install of Win/2K for
testing. This way, I
have a test machine which does not have any part of Visual Studio
installed and I can use "undo disks" to get back to a clean install to
try something else.

If I redirect to the mrdriver.exe you sent, it does come up when I
print.Are you still unable to get it to start? (I didn't rebuild
mrdriver.)

> the tif i produce with tiff24nc device results in very big size

According to devices.htm in the Ghost doc directory, the color tiff
devices produce uncompressed output so they are going to make large
files. One 8.5x11 inch page at 300 dpi is (8.5 x 300) x (11 x 300) =
8,415,000 pixels.Tiff24nc is 24 bits (3 bytes) per pixel, so the size
could exceed 24 MB.
This, and the need to do cropping, is why my script feeds the output
into Irfanview for conversion to a more efficient format. (I notice
I'm still running Ghostscript 8.0 at home. Maybe 8.5 has more tiff
devices; I should
upgrade in any case.)

____________________________________________________________________
>From : Ali
Date: Apr 17, 2005 3:37 AM
Subject: Re: Converting office documents to image format

Any One interested in mrdriver can ask me for its sourcecode

Dear Bob,

I havn't used Virtual PC so far but i do understand how it works ,
isn't the same thing which we do for making our 16 bit applications
compatible for 32 bit addressing , like WOW (windows on windows) , in
virtual PC it seems 32 on 32.
> Are you still unable to get it to start? (I didn't rebuild
mrdriver.)
Yes i still can't see my mrprinter? when test from file->print->My Paa
Driver. If things are working fine on your PC then you should get a
greeting message box from vb form load method when you print. Have you
seen this greeing box?

I think some thing wrong with my system DB(windows registry) and sure
it should be she is bearing three to four underdevelopment cruel
drivers , and the ugly thing is that she is with only 450 heart bit
(MHZ:-) [i'm talking about my beloved Toshiba test machine] She is
quite satisfied soul and never minds even for kernel mode device driver
development.
> According to devices.htm in the Ghost doc directory, the color tiff
devices
> produce uncompressed output
True, it is stated in GS documentation that there are 5 tiff colored
devices and all are uncompress devices then how come Adobe produces a
colored tif image with only 450 KB file size , and here i am getting
1.38 MB file size from GS .
I think they are using compression techniques to reduce the file size
while maintaining its original tagged image format structure. Or it
might be possible that i don't know the commandline switches of GS to
produce a low size tif; how can i be sure about this?

> 8.5x11 inch page at 300 dpi is (8.5 x 300) x > (11 x 300) =
8,415,000 pixels.
> Tiff24nc is 24 bits (3 bytes) per pixel, so the >size could exceed 24
MB
You mean that output tif is always direct proportional with dpi ,
bigger the value of dpi greater the output file.
> This, and the need to do cropping, is why my >script feeds the output
into
> Irfanview for conversion to a more efficient format.
Your batch file gadget which Integrate irfanview is really cute and
lovely do you think i should also set me output file for cropping but
what if i want to save them on disk ?without involving the GUI stuff.
We are targeting to reduce the file size with maximum good look, we
will go for 100 to 130 dpi. Isn't this good for Acdsea(not sure about
name) , windows image viewer , Photo shop , flash and bla bla or we
have to have a check for each output file clients printers , image
viewers etc.
Have a nice time bro going to light a cigarette in your name : cheers :

return BEST_WISHES + SUNDAY_FUN_TIME

_______________________________________________________________________________

From: Bob Babcock
Date: Apr 17, 2005 5:44 AM
Subject: Re: Converting office documents to image format

> Yes i still can't see my mrprinter? when test from file->print->My
Paa
> Driver. If things are working fine on your PC then you should get a
> greeting message box from vb form load method when you print. Have
> you seen this greeing box?

If I run mrdriver.exe from z:\ and pick install full package, it
creates the
mrdriver port and configures it to redirect to z:\\mydriver.exe (with
the
double backslash which I don't think matters). You didn't send me
mydriver.exe, only mrdriver.exe. It doesn't create a printer, but I
can do
that and select port mrdriver. If I change mydriver.exe to
mrdriver.exe, the
greeting message comes up when I try to print a test page.

> I think they are using compression techniques to reduce the file size
> while maintaining its original tagged image format structure. Or it
> might be possible that i don't know the commandline switches of GS to
> produce a low size tif; how can i be sure about this?

I assume the problem is just that no one has written the appropriate
driver.
The GIF patent on LZW compression, now expired, might have hampered
development. If I print a test page at 100 dpi, it makes a 2.8 MB tiff
file.
If I save this from Irfanview with LZW compression (no cropping) it
shrinks
to 68 KB. You could ask about tiff drivers in comp.lang.postscript.

> You mean that output tif is always direct proportional with dpi ,
> bigger the value of dpi greater the output file.

Worse, for an uncompressed bitmap it's going to be proportional to the
square
of the dpi, so if you double the resolution, the size grows by a factor
of
4. With compression, I think you'll see similar scaling, but it might
vary
depending on the content.

> what if i want to save them on disk [cropped]? without involving the
GUI
> stuff.

Off hand, the only thing I know of which will do automatic cropping is
pnmcrop from the netpbm package:
http://netpbm.sourceforge.net/doc/pnmcrop.html
I used this with Ghostscript probably in the early '90s when the
package was
called pbmplus. At that time, it represented images in intermediate
files as
ascii with a multi-digit number for each pixel, so the files were even
larger
than your uncompressed tiffs. I don't think this has changed, but I
haven't
looked at the package in many years.

> We are targeting to reduce the file size with maximum good look, we
> will go for 100 to 130 dpi. Isn't this good for Acdsea(not sure about
> name) , windows image viewer , Photo shop , flash and bla bla or we
> have to have a check for each output file clients printers , image
> viewers etc.

How the image looks should be independent of the viewing program. You
might
find someone running in 16-color mode, and that will make any image
look bad.
100-130 dpi is close to typical screen resolution, so if you are making
images to be viewed on screen without scrolling, there isn't much point
in
going any higher. If the images are to be printed, you might want
higher dpi
depending on the content. Black and white text at 150 dpi looks a
little
ragged. Some color inkjet printers claim 2400 dpi these days, but I
don't
really believe that number, and I'm sure the images people are printing
don't
have that resolution.

> Bob i'll post apart of this and your email on google group so others
> would also get some useful information, Is it fine with you?

Ali

unread,
Apr 19, 2005, 2:31:12 AM4/19/05
to
Hi Bob,
Sorry didn't get time to write you the current status of
mrdriver , any way see what Andi and postscript driver guys are talking
about your tiff compression question.

Aandi Inston Apr 18, 2:20 am hide options

Newsgroups: comp.lang.postscript
From: q...@dial.pipex.con (Aandi Inston) - Find messages by this author

Date: Mon, 18 Apr 2005 09:20:21 GMT
Local: Mon,Apr 18 2005 2:20 am
Subject: Re: What should be the default image printing settings for GS

Ali

unread,
Apr 20, 2005, 2:56:20 AM4/20/05
to
Hi Bob ,
Guess you are bussy there:-) han't got any response from you?
following are the best settings for GS for producing the color images
while considering quality + file size issue. I won't say that these are

the only best settings of GS:) but believe me these settings are
producing good images for me.


case TIF:
"-q -dNOPAUSE -dBATCH -dDOINTERPOLATE -dCOLORSCREEN -sDEVICE=tiff24nc
-r102 -sOutputFile=out.tif in.pdf";


case PNG:
"-q -dSAFER -dBATCH -dNOPAUSE -dDOINTERPOLATE -dCOLORSCREEN
-sDEVICE=png16m
-dTextAlphaBits=4 -r102 -sOutputFile=out.png in.pdf";


case JPG:
"-q -dSAFER -dBATCH -dNOPAUSE -sDEVICE=jpeg -dJPEGQ=93 -dDOINTERPOLATE
-dCOLORSCREEN
-r102 -sOutputFile=out.jpg in.pdf";


case BMP:
"-q -dSAFER -dBATCH -dNOPAUSE -dDOINTERPOLATE -dCOLORSCREEN
-sDEVICE=bmp256 -r102 -sOutputFile=out.bmp in.pdf"; //bmp16m is for
best quality with large file size cost.

0 new messages