This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, October 15, 2009 11:44:24 PM(UTC)
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
#2
Posted
:
Sunday, October 18, 2009 12:54:57 AM(UTC)
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)
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
#4
Posted
:
Monday, November 2, 2009 4:50:38 AM(UTC)
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)
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)
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.