Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For "window.save_image(imgpath)" in GGUI it would be nice to indicate the desired dpi, ex : dpi=240 as in plt.savefig(imgpath, dpi=240) #8464

Open
deMesnard opened this issue Jan 24, 2024 · 0 comments
Labels
feature request Suggest an idea on this project

Comments

@deMesnard
Copy link

The graphical interface of Taichi with GGUI is fantastic. But when you save an image for a simulation you loose some definition (Dots Per Inch) if you compare with what you have at the screen.

Concisely describe the proposed feature :
I propose to be able to add a parameter dpi= (ex: dpi=240) in the instruction "window.save_image(imgpath)" in GGUI. For instance as with Matplotlib plt.savefig(imgpath, dpi=240). I can see that each image from Matplotlib has the size of 1.3 ko at dpi=240, here it is 172 ko much smaller and without the possibility to increase the dpi.

So the videos built from these images at dpi=240 are like what we see at the screen.
Thank you for the creation of Taichi !

@deMesnard deMesnard added the feature request Suggest an idea on this project label Jan 24, 2024
@github-project-automation github-project-automation bot moved this to Untriaged in Taichi Lang Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Suggest an idea on this project
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant