Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implement save_gif function#301

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
martinRenou wants to merge6 commits intomaster
base:master
Choose a base branch
Loading
fromimage_data_request
Draft

Conversation

@martinRenou
Copy link
Collaborator

This PR makes saving frames more reliable (fixhttps://github.com/martinRenou/ipycanvas/issues/222), allowing to implement asave_gif method (fixhttps://github.com/martinRenou/ipycanvas/issues/136)

fromtimeimportsleep# 50Hzfrequency=20withsave_gif(canvas,"test.gif",frequency=frequency):foriinrange(50):canvas.clear()draw(canvas,i*frequency)canvas.frame()

TODO

  • Implement asave_video using OpenCV (as an optional dependency)
  • Add docs for this
  • Update the docs for saving files: usingframe instead ofsync_image_data
  • Remove docs forsync_image_data and deprecate it? We should probably encourage manual syncing from now on
  • Updateself.data when a frame is received

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

to_file is unreliable Add a method for easily generating GIFs

2 participants

@martinRenou

[8]ページ先頭

©2009-2025 Movatter.jp