You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to fix this, I noticed that image_format='gif' isn't really supported properly. It is supported (I think?) when doing report.add_image, but for Report(..., image_format='gif') things are very broken. So I propose:
Remove image_support='gif' support for Report as a class
Add image_format=None kwarg to add_stc and add_evokeds, add_slider -- anything that supports a slider.
Make image_format='gif' work properly when making a slider by selecting frames from the GIF rather than changing to different images. (This should hopefully make the images smaller, at least in some cases.)
Add proper image_format='webp' support for animations by natively storing the frames in webp format -- this will hopefully be even smaller than GIF.
I already have (1) done because it's pretty easy. I'll open a PR for that, then later a separate one for 2-5 probably after doing some tests that (4) and (5) could actually save some space.
So it looks like we're likely to get at least ~40-50% reduction in file size relative to storing plain PNGs. Going from individual webp images to a single animation is smaller (10-20%), but probably EDIT: not still worth it.
Activity
larsoner commentedon Dec 7, 2022
Okay with a little bit of testing:
main)So it looks like we're likely to get at least ~40-50% reduction in file size relative to storing plain PNGs. Going from individual webp images to a single animation is smaller (10-20%), but probably EDIT: not
stillworth it.PIL code