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
whish for 2016: matplotlib can use only Pillow 3.0+ to create animated GIF #5750
Comments
Someone just needs to write a pillow-based writer. This should be pretty simple once #5454 gets merged. |
Do you have an up-to-date example that demonstrates this? This would be a good use-case for #5454. A working script that uses Pillow to programmatically create an animated GIF from a sequence of individual images (either Pillow |
I did the little googling earlier, with same lack of example of writing.
|
Cool, but that starts with an animated GIF. We'll need to be able to create one "from scratch". I took a look at the Pillow unit tests for the gif plugin, and based on that, here's what I have so far. The GIF should be a yellow rectangle that fades to black:
Using |
I put a "proof of concept" animated GIF writer class in a gist: https://gist.github.com/WarrenWeckesser/7c8423d3935cad422774 Here's an example of its use:
It creates: |
cool ! |
@stonebig You might also be interested in animated PNG files. If so, check out |
Even Greater, animated png are much more powerfull ! How to pack that so that these two awesome bleeding edge leaders can easily switch away from |
Jake's notebook generates an animated GIF with:
You can generate an animated PNG by adding the import
|
Weird, in gmail, that animated PNG was not animated when embedded in the On Tue, Dec 29, 2015 at 6:00 PM, Warren Weckesser notifications@github.com
|
hum, gmail is maybe not showing the real image, like blackberry servers tends to do, until you download it ? .. Indeed, the image in gmail is 6.72 K instead of 349.7 K (maybe it's a gmail bug and you just earned 10.000 $ ?) |
That one works. On Tue, Dec 29, 2015 at 6:31 PM, stonebig notifications@github.com wrote:
|
Why Google truncates the smaller-than-gif "png" is a mystery. On a side note, the "animated png" doesn't work on Windows Phone "8.1" default and unique browser. |
@stonebig: Animated PNG also doesn't work in Safari. It works in Firefox, and I've learned that it can work in Chrome and Opera with an appropriate extension installed. I don't know the status of animated PNG in any Windows browsers (other than what you just reported). |
Would also be nice to find out how well it works in PowerPoint. Codec
|
Earlier I wrote:
I just saw this at http://animatedpngs.com/:
I have Safari 9.0.2 on my laptop, which doesn't show the animation when displaying an animated PNG, but perhaps newer versions of Safari support it. |
Reading the Wikipedia entry about "animated png" (https://en.wikipedia.org/wiki/APNG), I see:
Is there some movement to resolve this around a third format that would avoid anyone loosing face ? (it's not clear to me, reading the internet; GIFV, AWEBP, BPG, ...) Is there a secondary step transforming apng in something everybody accepts to read ? |
Animated GIF with Pillow is implemented in #10240. |
Imagemagick is a problem on windows, and the
animated gif
functionality of Pillow seems to work for some well-known situations since 3.0.0.(would spare 40 Mo of Imagemagick downloads on Windows 64bit, and installation tricks, a huge win)
The text was updated successfully, but these errors were encountered: