NConvert EPS->PNG : DPI question

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

Moderators: XnTriq, helmut, xnview

Bingo
Posts: 25
Joined: Fri Sep 10, 2004 7:00 am

NConvert EPS->PNG : DPI question

Post by Bingo »

Hello !

It is my second try with nconvert to automate eps to png conversion.
The first time, I had problem with the transparent colors in the EPS not being converted to white in the PNG, buit to a more or less gray color.
I want to give this a second try (imagemagick's mogrify is just too sloooooow), but now I just can't find a way to specify the DPI for the output !
Inputs are in EPS format, so outputting without a DPI value doesn't make sense !
I tried :
nconvert -out png -dpi 150 toto.eps
nconvert -out ong -dpi 10 toto.eps
nconvert -out png toto.eps
and all with the same result ! The dpi value doesn't change the size of my PNG !
What am I doing wrong ?

Thanks a lot !

Arnaud
Bingo
Posts: 25
Joined: Fri Sep 10, 2004 7:00 am

Post by Bingo »

OK I have some hints !
The eps is recognized as a tiff I think :?
C:\temp>nconvert -v -out png -dpi 50 toto.eps
** NCONVERT v4.22 (c) 1991-2004 Pierre-E Gougelet (Jul 7 2004/09:58:01) **
Version for Windows NT/9x/2000 (All rights reserved)
** This is a freeware software (for non commercial use)

A TIFF (RGB) - Rle was recognized : toto.eps
Width:1192 Height:1875 with 16777216 colors
Nplanes : 1 Bitscount : 24
Bytes Per Plane : 3576
xdpi : 36 ydpi : 36
A PiNG was writen : toto.png
Width:1192 Height:1875 with 16777216 colors

Conversion of toto.eps into toto.png OK
When I try to force input to eps :
C:\>nconvert -v -out png -in eps -dpi 50 toto.eps
** NCONVERT v4.22 (c) 1991-2004 Pierre-E Gougelet (Jul 7 2004/09:58:01) **
Version for Windows NT/9x/2000 (All rights reserved)
** This is a freeware software (for non commercial use)

Error: Don't know how to read this picture (toto.eps)
I am quite puzzled now .... :?
User avatar
xnview
Author of XnView
Posts: 44473
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

Bingo wrote:OK I have some hints !
The eps is recognized as a tiff I think :?
Yes, your file seems to be a TIFF file. Are you sure that it's an EPS?
Or EPS with TIFF preview??
Pierre.
Guest

Post by Guest »

xnview wrote:
Bingo wrote:OK I have some hints !
The eps is recognized as a tiff I think :?
Yes, your file seems to be a TIFF file. Are you sure that it's an EPS?
Or EPS with TIFF preview??
Pierre.
Yes, it is an EPS with a TIFF preview.
But I think I can't help that ! It is generated automatically by another software...

NB : I used the same EPS, when I first tried nconvert, and this did not happen... :?
Bingo
Posts: 25
Joined: Fri Sep 10, 2004 7:00 am

Post by Bingo »

Oups sorry, I was not logged in. The last post was from me :wink:
User avatar
xnview
Author of XnView
Posts: 44473
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

Bingo wrote:Oups sorry, I was not logged in. The last post was from me :wink:
Is it possible to send me the file?
Pierre.
Guest

Post by Guest »

Sure it is !
But it is a 15MB file :?
I can upload it on an ftp if you want.
Bingo
Posts: 25
Joined: Fri Sep 10, 2004 7:00 am

Post by Bingo »

Anonymous wrote:Sure it is !
But it is a 15MB file :?
I can upload it on an ftp if you want.
Ooops, that was me again :P
User avatar
xnview
Author of XnView
Posts: 44473
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

Anonymous wrote:Sure it is !
But it is a 15MB file :?
I can upload it on an ftp if you want.
Yes please.
Pierre.
Bingo
Posts: 25
Joined: Fri Sep 10, 2004 7:00 am

Post by Bingo »

xnview wrote:
Anonymous wrote:Sure it is !
But it is a 15MB file :?
I can upload it on an ftp if you want.
Yes please.
Pierre.
Pierre, did you find something special with my file ?
User avatar
xnview
Author of XnView
Posts: 44473
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post by xnview »

Bingo wrote:Pierre, did you find something special with my file ?
i have tested, and here is my result with NConvert v4.22
nconvert -dpi 10 -out jpeg -o test.jpg test.eps
The result file is 330x520
nconvert -dpi 50 -out jpeg -o test.jpg test.eps
The result file is 1654x2603

Code: Select all

** NCONVERT v4.22 (c) 1991-2004 Pierre-E Gougelet (Jul  7 2004/09:58:01) **
        Version for Windows NT/9x/2000  (All rights reserved)
** This is a freeware software (for non commercial use)
A Encapsuled Postscript (RGB) was recognized : toto.eps
    Width:330 Height:520 with 16777216 colors
    Nplanes : 1      Bitscount : 24
    Bytes Per Plane : 990
    xdpi : 10         ydpi : 10
A Jpeg was writen : test.jpg
    Width:330 Height:520 with 16777216 colors
Are you sure to have installed ghostscript?
Could you try again, please?
Pierre.
Bingo
Posts: 25
Joined: Fri Sep 10, 2004 7:00 am

Post by Bingo »

xnview wrote:Are you sure to have installed ghostscript?
I think I am going to burry myself deep underground !
Sorry for the work it gave you, Pierre !