Saving to .eps causes ugly black fog in background

Post questions on how to use or achieve an effect in Inkscape.
Graviton
Posts: 3
Joined: Thu Jul 18, 2013 5:13 am

Saving to .eps causes ugly black fog in background

Postby Graviton » Thu Jul 18, 2013 5:29 am

I have a document in Inkscape that I'd like to save in a vector format so that it can be included in a document. The trouble is, every vector format I've tried seems to screw up the image. When I save the image as a .eps, it gains a weird black fog in the background. (Incidentally, this happens regardless of whether I've set the background in Document Properties->Page to transparent or white.)

I've also tried saving the document as a pdf, but it only saves part of the document. The original image has a rasterized part and a vector part, and saving to pdf only saves the vector part, despite the fact that both parts came from a pdf file to begin with.

I can save it just fine as a .png, but I'd really like to save the image in a vector format so that the text doesn't get pixellated. Anyone know what might be going wrong?

Incidentally, here are the .svg, .eps and .pdf that I've managed to create:
SVG Image
Image
Image

I'm now further confused by the fact that the issue seems to be reversed when the images are displayed by Dropbox, with the pdf containing the rasterized image but also an odd black background and the svg apparently lacking the rasterized part. So yes, any help would be much appreciated, this has baffled my more Inkscape-savvy friend as well.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Saving to .eps causes ugly black fog in background

Postby Lazur » Fri Jul 19, 2013 9:46 am

That svg is a result of a resaving of a pdf I assume.
The part you are missing is a raster image with some given transparency -namely the result of a raster image used as a mask.
Eps doesn't handle transparency.
For the save as pdf, I didn't fint the answer yet.

Here is a bit cleaner version of the svg:

SVG Image

The transparency is removed, thus the raster part is now below the coordinate system.
Also all the elements are scaled up so the raster image now is fitting the pixel grid, for sharp png export.

The web browser may not render the svg right, so download it to open in inkscape.
Like cmr12 is not a well known font everyone have.

Graviton
Posts: 3
Joined: Thu Jul 18, 2013 5:13 am

Re: Saving to .eps causes ugly black fog in background

Postby Graviton » Thu Jul 25, 2013 7:07 am

Lazur URH wrote:That svg is a result of a resaving of a pdf I assume.
The part you are missing is a raster image with some given transparency -namely the result of a raster image used as a mask.
Eps doesn't handle transparency.
For the save as pdf, I didn't fint the answer yet.

Here is a bit cleaner version of the svg:


The transparency is removed, thus the raster part is now below the coordinate system.
Also all the elements are scaled up so the raster image now is fitting the pixel grid, for sharp png export.

The web browser may not render the svg right, so download it to open in inkscape.
Like cmr12 is not a well known font everyone have.



Can you explain how you removed the transparency? Even if the coordinate system appears above the raster part, if it's subtle enough the image might still be usable for me.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Saving to .eps causes ugly black fog in background

Postby Lazur » Fri Jul 26, 2013 9:02 am

Having read your pm you wrote me, as your post won't get approved before some deadline, here is another version that is all vector, with no transparency:
SVG Image
Good luck!

User avatar
flamingolady
Posts: 687
Joined: Wed Jun 10, 2009 1:40 pm

Re: Saving to .eps causes ugly black fog in background

Postby flamingolady » Sat Jul 27, 2013 4:47 am

Nice job Lazur. Appears that Lazur simply placed the background lines above the image for the appearance of opacity, great idea. EPS cannot handle transparency, or gradients, filters, sadly.
I would suggest that if you want opacity, that you convert your text to a path, then it should be ok to save the entire file as a png (I do this all the time).
Just as an fyi - changing the background default in Inkscape won't affect the outcome, some people like to actually make their own grey/black checkerboard svg and use it as the default background, if you like that idea, you can search the forums here, there are instructions on how to do that. Most of us like to draw on a white background, but we know that the background is transparent even though the screen shows as white. Hope I'm not confusing you. Further, when you save as an EPS (and normally select the 2nd option of EPS2 BTW), just know that EPS automatically fills in the background with a while fill. So if you want something different, then you need to create your own background shape and color on each drawing.
(p.s. I'm not the best at explanations, but I'm trying to improve on that, so hope this makes sense to you rather than be confusing!).
dee

Graviton
Posts: 3
Joined: Thu Jul 18, 2013 5:13 am

Re: Saving to .eps causes ugly black fog in background

Postby Graviton » Sat Jul 27, 2013 10:01 am

flamingolady wrote:Nice job Lazur. Appears that Lazur simply placed the background lines above the image for the appearance of opacity, great idea. EPS cannot handle transparency, or gradients, filters, sadly.
I would suggest that if you want opacity, that you convert your text to a path, then it should be ok to save the entire file as a png (I do this all the time).


Yeah, I'm starting to realize that converting to paths might make sense all-round. Is there a simple way to do that?

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Saving to .eps causes ugly black fog in background

Postby Lazur » Sat Jul 27, 2013 10:50 am

Depends on what's simple, or, what is the result you would use.
The second one I made was totally manual work.
Drew a 3D grid and snapped each node to that over that raster image.
Less accurate but much faster way is to just draw those lines by two nodes.

An automatic workaround would be to edit the raster part in gimp
to an image that the 3D grid curves could be auto-traced from.

If there are more figures in this same coordinate system, you could reuse the basic grid once made.
Other than that, no simpler way to do an accurate design of that kind of perspective 3D yet.
Maybe if you had those charts in an .obj file, and an ortographic view would be fine,
you could import the .obj files straight to inkscape by the render 3D polyeder extension.


Return to “Help with using Inkscape”