For Programmers: Free Programming Magazines  


Home > Archive > PostScript > September 2007 > PDF to jpeg conversion with ghostscript









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PDF to jpeg conversion with ghostscript
varun8211@gmail.com

2007-09-14, 4:19 am

When I use this command :
gs -q -dSAFER -dJPEGQ=$quality -dTextAlphaBits=4 -dGraphicsAlphaBits=4
-r200 -dNOPAUSE -dBATCH -sDEVICE=jpeg $outputSpec -c \"<< /UseCIEColor
true >> setpagedevice \" -f $sourceFile

to convert CMYK PDf to jpeg, it works good but if the PDf is RGB, the
the out put jpeg is not good.


any idea why ?

ken

2007-09-14, 4:19 am

In article <1189749567.213096.61270@57g2000hsv.googlegroups.com>,
varun8211@gmail.com says...
> When I use this command :
> gs -q -dSAFER -dJPEGQ=$quality -dTextAlphaBits=4 -dGraphicsAlphaBits=4
> -r200 -dNOPAUSE -dBATCH -sDEVICE=jpeg $outputSpec -c \"<< /UseCIEColor
> true >> setpagedevice \" -f $sourceFile
>
> to convert CMYK PDf to jpeg, it works good but if the PDf is RGB, the
> the out put jpeg is not good.
>
>
> any idea why ?


You have set /UseCIEColor to true, what are you using for a Color
Rendering Dictionary ?

If you want to use CIE colour correction its vitally important to use a
CRD which gives correct colours for your device.

Its also possible that the DefaultRGB resource supplied with GhostScript
isn't ideal, have you tried changing it ?


Ken
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com