-
Notifications
You must be signed in to change notification settings - Fork 45
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
Request: support Animated PNG (APNG) #305
Comments
Thanks! Great idea! Do you happen to know what is required to know if a PNG is animated? The extension is the same as PNG, so I guess some pre-check for animation would need to be done. |
The way that the Internally, the .png file should contain the acTL chunk (whose header contains the four hex bytes 61 63 54 4c i.e. "acTL") prior to the IDAT chunk (whose header contains the four bytes 49 44 41 54 i.e. "IDAT"). |
Thanks! It seems that |
I've found one animation that looks like the offset is incorrectly calculated here: |
I've released |
The bouncing ball animation has minor visual artifacts at the top and bottom edges of the ball when displayed in Oculante version bouncing-ball-left-oculante-right-chromium-browser.mp4From what I can tell, Oculante correctly displays this brain scan animation and this elephant animation. |
Well spotted! This seems like to be an issue in zune_png. I've made a minimal example based on their example to decode an animation here: https://github.com/woelper/apng_test I think it looks like I need to open an issue in their repo. I could try using the |
I have added an issue here: |
I've merged the latest rc from zune-png and all examples look correct now. |
Version 0.8.22 can open the clock and the MRI scan images, but I get a crash if I try to open the bouncing ball or the elephant. I got a log in my terminal by running /Applications/oculante.app/Contents/MacOS/oculante with the environment variable
|
I've opened an issue here: |
Is your feature request related to a problem? Please describe.
Animated PNG (APNG) is an extension of PNG and uses the same file extension (.png) and MIME type (image/png). An example APNG is a bouncing ball animation by Holger Will. The
zune-png
crate that Oculante uses doesn't support APNG.Describe the solution you'd like
I would like to open APNG files as if they were GIF files. The
png
crate ((docs and crate page) seems to be about as fast aszune-png
now.The text was updated successfully, but these errors were encountered: