dexplo / dataframe_image

A python package for embedding pandas DataFrames as images into pdf and markdown documents
https://dexplo.org/dataframe_image
MIT License
282 stars 41 forks source link

Add optional parameter to change quality of exported image #52

Closed hns258 closed 2 years ago

hns258 commented 2 years ago

This PR may be able to close out a few issues requesting the ability to change the quality/resolution of exported *.png images. Added a new optional parameter dpi that users can set. (e.g., 200, 600, etc.)

https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.savefig.html https://stackoverflow.com/questions/31400685/how-to-take-retina-screenshots-with-xvfb-and-selenium

Closes #45, closes #39, closes #34, closes #8

PaleNeutron commented 2 years ago

Ready to merge?

hns258 commented 2 years ago

Yes I think so, if all else looks ok to you, thanks!

jsulopzs commented 1 year ago

This feature is a game-changer. Thanks for making it possible!

I had to upgrade the library to make it work:

pip install -U dataframe-image

PS: it'd be great to put an example in the home README.md