plotly / orca

Command line application for generating static images of interactive plotly charts
MIT License
296 stars 39 forks source link

EPS: graphics are rasterized if they contain semi-transparency #276

Open antoinerg opened 4 years ago

antoinerg commented 4 years ago

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.

nicolaskruchten commented 4 years ago

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

antoinerg commented 4 years ago

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

nicolaskruchten commented 4 years ago

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

antoinerg commented 4 years ago

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

dplazas commented 4 years ago

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

antoinerg commented 3 years ago

@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.