orca icon indicating copy to clipboard operation
orca copied to clipboard

EPS: graphics are rasterized if they contain semi-transparency

Open antoinerg opened this issue 5 years ago • 6 comments

Because EPS does not support semi-transparency, it seems like poppler will rasterize graphics if they have semi-transparent elements (ie. elements with opacity ]0,1[). The way to fix this is to remove semi-transparency from the figures prior to conversion (as we do for EMF). It might make sense to perform this cleanup in plotly.js itself where we have the full power of d3 selection.

This is a follow-up to a similar (but now closed) issue https://github.com/plotly/orca/issues/248.

antoinerg avatar Jan 09 '20 17:01 antoinerg

So EPS just doesn't support at all at all?

nicolaskruchten avatar Jan 27 '20 18:01 nicolaskruchten

That's correct! EPS only supports fully opaque or fully transparent!

antoinerg avatar Jan 27 '20 18:01 antoinerg

How does e.g. Illustrator deal with EPS exports with partial transparency? Just out of curiosity :)

nicolaskruchten avatar Jan 27 '20 18:01 nicolaskruchten

That's a very good question! I don't have a license of Illustrator at the moment but I will ask Sidi Shen.

antoinerg avatar Jan 27 '20 19:01 antoinerg

have u encountered this error?

"Error: The orca command-line utility is required for this functionality." I dont know what else I can do ! thanks

dplazas avatar Apr 02 '20 18:04 dplazas

@dplazas if you are using Python and you want to export static images, I would recommend checking out https://github.com/plotly/kaleido since the installation is much smoother.

antoinerg avatar Nov 19 '20 21:11 antoinerg