EPS TO JPG getting wong image size and poor quality.

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Post Reply
Art

EPS TO JPG getting wong image size and poor quality.

Post 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
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post 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??
Pierre.
Art

EPS TO JPG getting wrong image size and poor quality.

Post 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
Art

EPS TO JPG getting wrong image size and poor quality.

Post 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.
User avatar
Ithier
Posts: 47
Joined: Fri Nov 19, 2004 10:50 am
Location: Paris, France
Contact:

Post 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/
Art

Post by Art »

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

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

Post 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
Pierre.
Post Reply