-
Notifications
You must be signed in to change notification settings - Fork 37
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 Animations via GIF/APNG #656
Comments
Animated PNGs are great, but good to keep in mind that they aren't supported by most social media (which is likely to be one of the main applications for animations): https://www.macrumors.com/2019/12/24/twitter-bans-animated-png-image-files/ MP4 would be another really useful and file size efficient format. |
I would therefore probably not bother initially with adding animated PNG as a separate image format type - I would just have the user request a PNG as normal, and let the details of the query (and the relevant config) determine whether the output is animated or not. The complexities mostly arise from existing assumptions in the multi-date handling code that would need to be wound back. Most importantly we would need to change the internal API for the aggregator function to allow it to return a dataset with a time dimension, and for the PNG renderer (currently the only renderer for WMS/WMTS) to render an animated png when passed a dataset with a time dimension with length > 1. |
So by reckoning: [x] New output format request parameter support not needed for APNG I've spoken to Terria team. They don't currently support animated pngs but it wouldn't be that hard. If we implemented it, there's a good chance someone on the team would do it for the the sheer joy of it. No idea about any other clients. But everybody will at least see the first frame, because of the backwards compatibility with regular pngs. [ ] Update internal API contracts between image renderer and aggregater functions. |
Signed-off-by: Tisham Dhar <[email protected]>
Signed-off-by: Tisham Dhar <[email protected]>
I think the trickiest bit will be mask handling. The styling API always flattens mask in the time dimension. |
Signed-off-by: Tisham Dhar <[email protected]>
Signed-off-by: Tisham Dhar <[email protected]>
Signed-off-by: Tisham Dhar <[email protected]>
Signed-off-by: Tisham Dhar <[email protected]>
Signed-off-by: Tisham Dhar <[email protected]>
Signed-off-by: Tisham Dhar <[email protected]>
Signed-off-by: Tisham Dhar <[email protected]>
datacube-ows
version: masterows_config.py
version/link:: anyDescription
There have been a couple of feature requests so far to support animations on demand via WMS getmap requests. Most recently from @valpesendorfer and @GypsyBojangles .
The options for output format are:
https://github.com/eight04/pyAPNG
Support requires (but not limited to)
What I Did
Collated various internal discussions and Slack messages into this issue one morning early in Narrandera.
The text was updated successfully, but these errors were encountered: