Convert EPS to JPEG or GIF

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

Moderators: XnTriq, xnview

Post Reply
ultrashark92
Posts: 2
Joined: Wed Aug 13, 2014 7:42 am

Convert EPS to JPEG or GIF

Post by ultrashark92 » Wed Aug 13, 2014 10:58 am

How can i convert EPS to JPEG
Attachments
eps.jpg
EPS Convert

cday
XnThusiast
Posts: 2183
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Convert EPS to JPEG or GIF

Post by cday » Wed Aug 13, 2014 1:53 pm

ultrashark92 wrote:How can i convert EPS to JPEG
Do you have Ghostscript http://www.ghostscript.com installed, x64 as you are using NConvert x64?

EPS is an unusual format but I think as for PDF you need Ghostscript installed to rasterise your images, and you will probably need to set a suitable DPI value to obtain a good image quality using -dpi, default value is 72DPI.

Do you have the NConvert syntax, obtainable by entering -help at the command prompt?

If you need further help could you post your command line between Code tags so that it is easily readable.

ultrashark92
Posts: 2
Joined: Wed Aug 13, 2014 7:42 am

Re: Convert EPS to JPEG or GIF

Post by ultrashark92 » Wed Aug 13, 2014 2:08 pm

cday wrote: Do you have Ghostscript http://www.ghostscript.com installed, x64 as you are using NConvert x64?
Yes Ghostscript is installed as x64 & NConvert too.
After reinstall Ghostscript the eps can convert to jpeg.
But how can i change the size and the dpi

Code: Select all

nconvert -out jpeg -truecolors -resize 510 0 -dpi 300 C:\Users\reiss_j\Desktop\test\*.EPS

Code: Select all

** NCONVERT v6.56 (c) 1991-2013 Pierre-E Gougelet (Apr  7 2014/09:38:50) **
        Version for Windows Xp/Vista/7 x64  (All rights reserved)
** This is freeware software (for non-commercial use)

  Error: Can't open file (nconvert)

  Error: Can't open file (-out)

  Error: Can't open file (jpeg)

  Error: Can't open file (-truecolors)

  Error: Can't open file (-resize)

  Error: Can't open file (510)

  Error: Can't open file (0)

  Error: Can't open file (-dpi)

  Error: Can't open file (300)

GS: (C:\Program Files\gs\gs9.14\bin\gsdll64.dll)
ARG 0 -dMaxBitmap=300000000
ARG 1 -sDEVICE=pnmraw
ARG 2 -q
ARG 3 -dNOPAUSE
ARG 4 -dSAFER
ARG 5 -dTextAlphaBits=4
ARG 6 -dGraphicsAlphaBits=4
ARG 7 -g3618x1500
ARG 8 -r1524.00
ARG 9 -sOutputFile=C:\Users\reiss_j\AppData\Local\Temp\x_17D6.tmp
ARG 10 C:\Users\reiss_j\AppData\Local\Temp\x_163F.tmp
ARG 11 -c quit
ARG 12 -c quit
==> 231

cday
XnThusiast
Posts: 2183
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Convert EPS to JPEG or GIF

Post by cday » Wed Aug 13, 2014 2:28 pm

In the Help file the EPS format is lowercase eps, that might be why the input files aren't read...

And I think you need a -o term to set the output file name...

A wildcard * will do I think, or there are other options in the Help file.

You can save the Help file as a text file using this code:

Code: Select all

nconvert -help > nconvert_help.txt

sartaros
Posts: 25
Joined: Tue Dec 14, 2010 11:21 am

Re: Convert EPS to JPEG or GIF

Post by sartaros » Fri Oct 24, 2014 5:22 pm

Please, what's wrong?
nconvert -in eps -dpi 300 -colors 256 -ctype rgb -o file.jpg file.ps

Error: don't know how to read this picture (file.ps)

gs x32 exists (xnview reads postscript files) and i read help
nconvert 6.56

cday
XnThusiast
Posts: 2183
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Convert EPS to JPEG or GIF

Post by cday » Fri Oct 24, 2014 6:26 pm

sartaros wrote:Please, what's wrong?
nconvert -in eps -dpi 300 -colors 256 -ctype rgb -o file.jpg file.ps

Error: don't know how to read this picture (file.ps)

gs x32 exists (xnview reads postscript files) and i read help
nconvert 6.56
You're using NConvert 6.56 x32 are you? (NConvert x64 would require GS x64... You say you can read Postscript files...)

Could you please clarify the filename of your input file and the type(s) of output file you wish to create... (file.ps is a Postscript file and is being interpreted as an input file, and there is no EPS file (extension .eps) in your command line... )

http://en.wikipedia.org/wiki/PostScript

http://en.wikipedia.org/wiki/Encapsulated_PostScript

Do you have a sample file you could upload (1MiB max and placed in a ZIP so that it can be uploaded)?

cday
XnThusiast
Posts: 2183
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Convert EPS to JPEG or GIF

Post by cday » Sat Oct 25, 2014 3:53 pm

/Continued...
sartaros wrote:Please, what's wrong?
nconvert -in eps -dpi 300 -colors 256 -ctype rgb -o file.jpg file.ps
To convert a Postscript file to JPG please try the following basic code:

Code: Select all

nconvert -out jpeg file.ps
To convert an EPS file to JPG, replace file.ps by file.eps .

Notes:

You can place a -dpi 300 term at the start of the command line, as in the code you posted, to increase the DPI of the resulting image from the GhostScript default value of 72dpi to 300dpi, for a better quality image.

The JPG format only supports 24 bit colour and grayscale, so the -colors 256 term in your code will not achive that result.

You can add JPG compression and other options as shown in the Help file, if required.

The -ctype rgb term in your code is probably not required as RGB is the default value, I believe.

Although the term -in is shown in the NConvert documentation it isn't normally used, and the input file(s) are simply placed at the end of the command line, as in the example code above.

Post Reply