Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, October 15, 2009 11:44:24 PM(UTC)

petwi  
petwi

Groups: Registered
Posts: 3


Hi!

I'm trying to convert EPS files into JPG (mainly for web-viewing) but the resulting images doesn't have a reasonable quality.


I have tested with different QFactors, Resolutions and sizes.

Also tried it in your MainDemo and the image doesn't looks good on screen either.

Please advice me how to load the images and save it to JPG with best quality (I don't care about performance or resulting filesize for now).


I also found changing the resulting file resolution doesn't change the filesize (but Vista reports correct resolution when checking properties).

The image also get cropped when read (it's ok but a bit strange).


I've attached some example images to review (prefix with ai created with Adobe Illustrator).


Leadtools v16.5, C#


Thanks in advance
Peter
File Attachment(s):
lead_supoport_exfiles.rar (240kb) downloaded 25 time(s).
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, October 18, 2009 12:54:57 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Peter,

To get a better quality when loading the EPS files, try to increase the loading resolution to 200 DPI by using the codecs.Options.Pdf.Load.XResolution and codecs.Options.Pdf.Load.XResolution properties. Also, try to set the codecs.Options.Pdf.Load.GraphicsAlpha to 4 before saving the image.
Please try the following code:
+----------+
RasterCodecs.Startup();
           
RasterCodecs codecs = new RasterCodecs();
           
codecs.Options.Pdf.Load.XResolution = 72;
codecs.Options.Pdf.Load.XResolution = 72;
codecs.Options.Pdf.Load.GraphicsAlpha = 4;
           
RasterImage SecondImage = codecs.Load(@"C:\Test EPS\ai_72_800x600.eps");

rasterImageViewer1.Image = SecondImage.Clone();     

codecs.Save(SecondImage, @"C:\Test EPS\LEAD_Second.jpg", RasterImageFormat.Jpeg, 24);
+----------+

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Monday, November 2, 2009 1:19:56 AM(UTC)

petwi  
petwi

Groups: Registered
Posts: 3


Hi Maen,

Thanks for your reply, codecs.Options.Pdf.Load.GraphicsAlpha did just what I was looking for.

I have a further question on the cropping when loading the image.

I have tried to adjust _codecs.Options.Pdf.Load.DisableCropping flag and adjusts indeed the "white area" around the image.

Now however there is the croppath in the image. Can i get it to obey this when loading? if not, can I get the area/region when the image is loaded?

(I've attached some sample images from Adobe Illustrator)

thanks again
Peter




File Attachment(s):
lead_support_crop.rar (84kb) downloaded 24 time(s).
 
#4 Posted : Monday, November 2, 2009 4:50:38 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

We load the EPS file Similar to how Acrobat Distiller converts it.
We only have the DisableCropping property and we don't have a different feature to load it in a different way.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#5 Posted : Monday, November 2, 2009 5:08:55 AM(UTC)

petwi  
petwi

Groups: Registered
Posts: 3


Hi again,

I was searching the forum and found this post:

http://support.leadtools.com/CS/forums/13207/ShowPost.aspx - does it still apply? I hope not!

thanks
Peter












 
#6 Posted : Monday, November 2, 2009 5:30:53 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

We still don't support retrieving a clipping path from EPS files.
The only property that we have is DisableCropping property.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.117 seconds.