Page 1 of 1

EPS TO JPG getting wong image size and poor quality.

Posted: Tue Feb 14, 2006 3:52 pm
by Art
Hi, I am trying convert EPS Files to JPG using GflAx and VB.net 2.0
These EPS files have jpeg images embeded.
When I save the file I am getting very small jpeg file.
I was trying to play with different eps settings. nothing helps. here is the code bellow. am i missing something? Please advice.

Try
Dim Converter As New GflAx.GflAx
With Converter

' .EpsWidth = 2000
' .EpsHeight = 2000
' .EpsDpi = 225
' .EnableLZW = True
.LoadBitmap(InFilename)

.SaveFormat = 1
.SaveFormatName = "jpeg"
.SaveJPEGQuality = 100
.SaveBitmap(outFileName)


End With

Catch ex As Exception
Debug.Write(ex.ToString)
End Try

Re: EPS TO JPG getting wong image size and poor quality.

Posted: Fri Feb 17, 2006 10:58 am
by xnview
Art wrote:Hi, I am trying convert EPS Files to JPG using GflAx and VB.net 2.0
These EPS files have jpeg images embeded.
When I save the file I am getting very small jpeg file.
I was trying to play with different eps settings. nothing helps. here is the code bellow. am i missing something? Please advice.

Try
Dim Converter As New GflAx.GflAx
With Converter

' .EpsWidth = 2000
' .EpsHeight = 2000
' .EpsDpi = 225
' .EnableLZW = True
.LoadBitmap(InFilename)

.SaveFormat = 1
.SaveFormatName = "jpeg"
.SaveJPEGQuality = 100
.SaveBitmap(outFileName)


End With

Catch ex As Exception
Debug.Write(ex.ToString)
End Try
By changing EpsDpi, nothing change??

EPS TO JPG getting wrong image size and poor quality.

Posted: Fri Feb 17, 2006 4:58 pm
by Art
Thank you for your reply.
Yes , changing epsdpi doesnot change output.
img width and height comeout very small, compare toepswidth or epsheight.

I noticed you have the same problem with XNview viewer. It Opens EPS Small rightaway and they are grainy (looks like halftone).
bellow link to sample eps file. I will keeps this file on server for week or two.
http://www.theday.com/gbl/media/dynamic ... 021906.eps
File Created In AdobePhotoshop 6.01, from Jpeg
Converted to CMYK, saved to EPS with following Options
Preview TIFF 8bits/Pixel
Encoding binary
Include Halftone Screen
Include Transfer Function

EPS TO JPG getting wrong image size and poor quality.

Posted: Fri Feb 17, 2006 5:15 pm
by Art
OK, after further investigation. I found that XNview and GFL, do not extract image from EPS, they both extract embeded TIFF preview.
If I save EPS with Preview TIFF 1bit/pixel both program will open two colored preview not image itself. If I save EPS without preview at all GFL will error out because of the bad file format.

Posted: Mon Feb 20, 2006 2:37 pm
by Ithier
Do you have AFPL Ghostscript installed ? It is necessary to open the EPS file and not the thumbnail included.
You can find it at http://www.cs.wisc.edu/~ghost/doc/AFPL/

Posted: Wed Feb 22, 2006 1:13 pm
by Art
Yes

Re: EPS TO JPG getting wrong image size and poor quality.

Posted: Wed Mar 08, 2006 1:19 pm
by xnview
Art wrote:OK, after further investigation. I found that XNview and GFL, do not extract image from EPS, they both extract embeded TIFF preview.
If I save EPS with Preview TIFF 1bit/pixel both program will open two colored preview not image itself. If I save EPS without preview at all GFL will error out because of the bad file format.
I have the same result as ghostview