connecting users of the CorelDRAW family of products

Problems importing/exporting EPS files

rated by 0 users
Not Answered This post has 0 verified answers | 18 Replies | 2 Followers

Share  
Page 1 of 2 (19 items) 1 2 Next > | RSS

Floyd posted on Thu, Jul 2 2009 18:29

I have an EPS file that is 560x424 pixels for which I need to change the colors shown.  When I import it into CorelDraw, change the colors using the Color Styles docker and export it back into an EPS (options: include header, resolution 200 ppi, bounding box set for objects and no bleed limit selected, although I've also tried it with other options selected), the resulting EPS is 561x425.  In other words, the simple act of importing and exporting appears to add a single row of pixels at the top and right edge of the image.    Since I'll be printing this file as a repeating pattern, this does not work for me. 

I've gone looking online and in this forum for similar problems and not found any, so apparently it's just me doing something wrong.  But what?

Please help!

Thanks,

Floyd

 

All Replies

Top 50 Contributor
Sweden
Male

I usually don' work with pixels as unit and haven't noticed any problems like this when using EPS. However I gave it a try and found something much more strange than what you describe:

I created a 560 x 424 px document in Illustrator CS2, and saved it as EPS. When imported to Draw the background rectangle (created a background because Draw ignored page size when importing/opening EPS) was 2,333 x 1,767 pixels. Repeated a couple of times but the result was the same. Using mm as unit instead, everything was fine. Is px in Illustrator and Draw not the same?

Edit: Never mind. I forgot that there is a resolution setting in Draw when using pixels. Changing it to 72 (instead of 300) corrected this issue.

Anyway, I ignored this weirdness and exported from Draw as EPS, and opened the file in Illustrator. Result; it was back to 560 x 424 pixels exactly. No extra pixels added.
Is your background perhaps a bitmap?
Can you please send a file that behaves like this.

/Ronny

After further playing around with this, the problem appears to happen regardless of whether the EPS was imported to begin with or whether it was created in CorelDraw.  It's got to be something with how I'm exporting to EPS format.  A sample pattern that I made in CorelDraw and exported is attached.  The design was a 2" square, so at 72 dpi the resulting file should be 144 pixels square, but instead is 145 pixels square.  A row of transparent pixels has been added to the top and left of the design -- and I don't know why, or how to stop that from happening.

Thank you for any advice you can give!

Floyd

Top 50 Contributor
Southeast Texas, USA
Male

Hmmm, I imported the file you posted after changing my resolution  to 72 and it comes in at 144px x 144px.

I'm sorry, there was part of this I left out because I didn't think it was relevant -- after exporting the EPS files, I am opening them again in Corel Paint Shop Pro Photo XI to do further processing.  When I open EPS files that have not been processed through CorelDraw, there are no extraneous pixels.  When I open ones that have been processed through CorelDraw -- even if all I've done is open the EPS and export it again -- Corel PSP tells me the size has increased by 1 pixel, which appears as a transparent row and column. 

I am very surprised that the file I attached would show as 144 x 144 pixels in CorelDraw when it shows as 145 x 145 in Corel PSP.

Top 50 Contributor
Southeast Texas, USA
Male

I don't have Corel PSP so I cannot test that aspect. Here is a screen shot of the imported file you attached.


Hi Jack,

Thanks for your help -- but that screen shot only shows that the pattern, once selected, is 144x144.  What I'm saying is that the file itself is 145x145.  I don't know CorelDraw enough to know where to find file dimensions within CorelDraw, but it shows up clearly when viewed through other applications.

I did find a workaround, which I am posting here in case others have the same issue.  Adjust the page size to be the same size as the objects, and then export using the page as the bounding box instead of the objects.  For some reason, this takes care of the problem, and in the example discussed saves the file at 144x144.

Thanks!

Eric

Top 50 Contributor
Southeast Texas, USA
Male

Eric,

I see what you mean now. I can be dense at times. I opened the file in a couple of photo editors I have. 145 x145 pixels. Extra row of pixels on the left and bottom. Thanks for the follow up.

Jack

Top 10 Contributor
Jacksonville, Florida USA
Male

thx for posting what you found Floyd 

Fluid - Richard Reilly http://www.unleash.com/fluid/

Top 50 Contributor
Sweden
Male

Floyd

I can see the same thing you see:

File exported from Draw and opened in PhotoPaint or Photoshop is 145 x 145 pixels.

Same file exported from Illustrator CS2 opens in PP and PS as 144 x 144 pixels, which is correct.

Don't know why this happens but apparently one pixel is added when the page size is bigger than the objects (no matter if you choose Objects or Page on export). There's probably an explanation to this behavior, but I have no idea.
Workaround you've already found: Set page size to match the objects.

Edit: This information has been added to the Wiki.

/Ronny

Top 10 Contributor
Lancaster, PA USA
Male

Ok guys I'm having mental issues.  I created a 33 x 33 pixel vector graphic at 72 ppi in Draw, exported to eps using objects and floating point numbers on the advanced tab of the eps export dialog. I open the EPS in Photo-PAINT and raserize it to pixels at 72 dpi and bingo it is 33 x 33.  Am I on drugs?  Or should I be?

David Milisock

Top 50 Contributor
Southeast Texas, USA
Male

David,

I went back and checked my settings. I had the Floating Point off. Re-exporting the shape with FP on.  I got the same results you did. So, I guess you are not on drugs. As to weather you should be or not depends on your mood. Wink Floating Point parameter seems to be at least one key.

Jack

Top 10 Contributor
Lancaster, PA USA
Male

Jack Ross:
Floating Point parameter seems to be at least one key.

 

Jack I believe it is the key,  I've tested so may PS, EPS and PDF filters over the years I cannot remember what the defaults are anymore.  If memory serves awhile back I argued that the floating point numbers should be default because of size variations of exported eps files. 

With that said I think my filter just rem,ember swhat i did so  it always does that.  I konw I hav eit writen down as one of my new install set up default settings.

David Milisock

Turning on FP did the trick.  I can export with the objects as the bounding box and not get those extra pixels.  Thanks everyone for your help!

E. Floyd

Top 10 Contributor
Lancaster, PA USA
Male

GROOVY!!  Wink

David Milisock

Page 1 of 2 (19 items) 1 2 Next > | RSS
© Corel Corporation. The content herein is in the form of a personal web log ("Blog") or forum posting. As such, the views expressed in this site are those of the participants and do not necessarily reflect the views of Corel Corporation, or its affiliates and their respective officers, directors, employees and agents. Terms and Conditions / User Guidelines.