# Get an eps image without rasterization?

**URL:** <https://community.wolfram.com/t/get-an-eps-image-without-rasterization/11707>\
**Category:** Questions\
**Tags:** image-processing, mathematica, graphics-and-visualization, import-and-export\
**Created:** [December 20, 2017, 2:06pm UTC](https://community.wolfram.com/t/get-an-eps-image-without-rasterization/11707 "2017-12-20T14:06:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![suzukikazuhiro130](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@suzukikazuhiro130](https://community.wolfram.com/u/suzukikazuhiro130)\
**Post date:** [December 20, 2017, 2:06pm UTC](https://community.wolfram.com/t/get-an-eps-image-without-rasterization/11707/1 "2017-12-20T14:06:19Z")

</div>

Hello All. I’m beginner of Mathematica. And I have a question.  
Now I make 3D-plot graphs. Like

```
Plot3D[x^2 + y^2, {x, -100, 100}, {y, -100, 100}]

```

And I intend to save images using EPS.  
But all images are outputed in a rasterized state.  
So I wanna know how can I get an eps image without rasterization

regards Kazuhiro

---

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/szhorvat/32/3531_2.png) [@szhorvat](https://community.wolfram.com/u/szhorvat)\
**Post date:** [December 20, 2017, 2:49pm UTC](https://community.wolfram.com/t/get-an-eps-image-without-rasterization/11707/2 "2017-12-20T14:49:14Z")

</div>

It should be possible using the `"AllowRasterization"` option, like this:

```
Export["~/Desktop/g.eps", g, "EPS", "AllowRasterization" -> False]

```

But it doesn’t work. I assume it is a bug.

* * *

Regardless of this, my advice is not to try to do this. In earlier versions this was definitely possible, but the quality of the output left a lot to be desired. The files were huge and the seams between the polygons were visible. I completely understand why you would want a vector output. I tried to do this myself in the past. Based on that experience, I think the best approach is to rasterize and prepare figures to size:

- [https://mathematica.stackexchange.com/a/750/12](https://mathematica.stackexchange.com/a/750/12)

Decide in advance for your desired print size, and choose the dimensions and resolution accordingly. You will get smaller files, better quality (when viewed at appropriate size) and much faster rendering.

Even [GL2PS](http://www.geuz.org/gl2ps/), which produces better quality vector output for 3D graphics than Mathematica ever has, creates files which often look problematic and have rendering artefacts. (Also, your example has _many_ more polygons than those GL2PS samples, and is a lot more problematic to render due to the mesh that mustn’t be obscured by the surface. I am very skeptical about how well even GL2PS could handle it.)

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [December 20, 2017, 2:56pm UTC](https://community.wolfram.com/t/get-an-eps-image-without-rasterization/11707/3 "2017-12-20T14:56:07Z")

</div>

You can try the option `ImageResolution -> Infinity`. There is also the option `"AllowRasterization" -> False`, which does not seem to do anything for me, in spite of the promising name.

---

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/szhorvat/32/3531_2.png) [@szhorvat](https://community.wolfram.com/u/szhorvat)\
**Post date:** [December 20, 2017, 3:00pm UTC](https://community.wolfram.com/t/get-an-eps-image-without-rasterization/11707/4 "2017-12-20T15:00:08Z")

</div>

That works, and creates a much better output (in size and quality) than what I remembered. There are some artefacts but they are tolerable.

Is this documented anywhere?

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [December 20, 2017, 6:31pm UTC](https://community.wolfram.com/t/get-an-eps-image-without-rasterization/11707/5 "2017-12-20T18:31:52Z")

</div>

I think I discovered it by chance, while struggling to get a vector pdf for a simple `Graphics3D`. The documentation for `ImageResolution` does not mention it.

---

<div class="post-metadata">

**Author:** ![suzukikazuhiro130](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@suzukikazuhiro130](https://community.wolfram.com/u/suzukikazuhiro130)\
**Post date:** [December 21, 2017, 6:32am UTC](https://community.wolfram.com/t/get-an-eps-image-without-rasterization/11707/6 "2017-12-21T06:32:20Z")

</div>

Dear Gianluca Gorni, Szabolcs Horvát

Thanks for all your help.  
I can understand this problem and how to tackle it.
