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

Support image animations (GIF, PNG) #823

Open
Cologler opened this issue Nov 5, 2023 · 4 comments
Open

Support image animations (GIF, PNG) #823

Cologler opened this issue Nov 5, 2023 · 4 comments

Comments

@Cologler
Copy link

Cologler commented Nov 5, 2023

No description provided.

@inukshuk inukshuk changed the title Import gif format as animation instead of a static images group Support image animations (GIF, PNG) Nov 6, 2023
@inukshuk
Copy link
Member

inukshuk commented Nov 6, 2023

Where would you want the animations to play? Only in the image viewer or everywhere?

@Cologler
Copy link
Author

Cologler commented Nov 6, 2023

I prefer everywhere.

@flachware
Copy link
Collaborator

Preserving animations sounds good to me. In the item table/grid some kind of interaction should be needed (hover or selection) to start the animation. In the image viewer we should consider adding a start/stop toggle to the toolbar at least.

@inukshuk
Copy link
Member

inukshuk commented Nov 7, 2023

There's an official plugin for GIF https://github.com/pixijs/gif

It parses the GIF using a gifuct-js. So this would not easily extend to PNG animations.

Instead we could save each frame separately using vips and load them into an animated sprite.

@inukshuk inukshuk added the esper label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants