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
EPS TO JPG getting wong image size and poor quality.
Moderators: helmut, XnTriq, xnview
Re: EPS TO JPG getting wong image size and poor quality.
By changing EpsDpi, nothing change??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
Pierre.
EPS TO JPG getting wrong image size and poor quality.
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
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.
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.
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.
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/
You can find it at http://www.cs.wisc.edu/~ghost/doc/AFPL/
Re: EPS TO JPG getting wrong image size and poor quality.
I have the same result as ghostviewArt 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.
Pierre.