which ghostscript paramters do nconvert use for pdf->jpg?

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
daytrader
Posts: 8
Joined: Fri Oct 02, 2009 7:01 am

which ghostscript paramters do nconvert use for pdf->jpg?

Post by daytrader »

my problem is that i use an very old nconvert (4.51) on an damn small linux system - there is no newer package for this distr.

i want to convert an pdf to jpg - but the resulting colors are wrong :-(

with ghostscript (using the switch -dUseCIEColor) we get an proper result :-) but the conversion is very slow

maybe nconvert passes extra switches to ghostscipt? - what are the default ghostscript switches which nvonvert uses?

regards daytrader
User avatar
xnview
Author of XnView
Posts: 46616
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: which ghostscript paramters do nconvert use for pdf->jpg?

Post by xnview »

daytrader wrote: maybe nconvert passes extra switches to ghostscipt? - what are the default ghostscript switches which nvonvert uses?
I don't use any special param
Pierre.
daytrader
Posts: 8
Joined: Fri Oct 02, 2009 7:01 am

Re: which ghostscript paramters do nconvert use for pdf->jpg?

Post by daytrader »

thank you for your fast reply :-)

but with the command:

gs -dSAFER -dBATCH -dNOPAUSE -dUseCIEColor -sDEVICE=jpeg -sOutputFile=test.pdf

gs is much slower than nvonvert

do you have an explanation for this?
User avatar
xnview
Author of XnView
Posts: 46616
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: which ghostscript paramters do nconvert use for pdf->jpg?

Post by xnview »

daytrader wrote: gs is much slower than nvonvert
do you have an explanation for this?
I use the width/height output, perhaps it's that
Pierre.
daytrader
Posts: 8
Joined: Fri Oct 02, 2009 7:01 am

Re: which ghostscript paramters do nconvert use for pdf->jpg?

Post by daytrader »

it´s me again :-)

do you use -gnumber1xnumber2 ?

from the ghostscript documentation:

-gnumber1xnumber2
Equivalent to -dDEVICEWIDTH=number1 and -dDEVICEHEIGHT=number2, specifying the device width and height in pixels for the benefit of devices such as X11 windows and VESA displays that require (or allow) you to specify width and height. Note that this causes documents of other sizes to be clipped, not scaled: see -dFIXEDMEDIA below.

but with this parameter the output is clipped not scaled :-?
User avatar
xnview
Author of XnView
Posts: 46616
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: which ghostscript paramters do nconvert use for pdf->jpg?

Post by xnview »

daytrader wrote: do you use -gnumber1xnumber2 ?
Yes
Pierre.
Post Reply