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

[gui] Add gif compression option #6183

Closed
houkensjtu opened this issue Sep 27, 2022 · 2 comments
Closed

[gui] Add gif compression option #6183

houkensjtu opened this issue Sep 27, 2022 · 2 comments
Assignees
Labels
feature request Suggest an idea on this project
Milestone

Comments

@houkensjtu
Copy link
Contributor

Currently, if a user export the results of a simulation as a gif animation according to the method described in the documentation, most likely the size of the file will be tens of MB, which is certainly too heavy to upload to any web page. Since it's quite common for a user to use the resulting animation on a website, can we provide a simple compression option in the ti gif command to help the user to reduce the size of the gif file?

@houkensjtu houkensjtu added the feature request Suggest an idea on this project label Sep 27, 2022
@houkensjtu houkensjtu changed the title [gui] Add gif compression function [gui] Add gif compression option Sep 27, 2022
@taichi-gardener taichi-gardener moved this to Untriaged in Taichi Lang Sep 27, 2022
@neozhaoliang
Copy link
Contributor

neozhaoliang commented Sep 29, 2022

I would suggest making the command ti gif and ti video into one command

ti video script gui_name [options]

For example, if I want to make a video of the animation in mpm88.py displayed in the GUI mpm_gui, I can run

ti video mpm88.py mpm_gui -framerate 30 -quality 15 ... result.gif 

This should be easy to implement but will require some third-party modules like imageio or moviepy.

@erizmr erizmr moved this from Untriaged to Todo in Taichi Lang Sep 30, 2022
@neozhaoliang neozhaoliang added this to the v1.1.4 milestone Sep 30, 2022
@jim19930609 jim19930609 modified the milestones: v1.1.4, v1.2.0 Oct 18, 2022
@ailzhang
Copy link
Contributor

Closing via #6289

Repository owner moved this from Todo to Done in Taichi Lang Nov 10, 2022
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: Done
Development

No branches or pull requests

4 participants