Comments (4)
Regarding saving to APNG, I've created #8104
I'm having trouble convincing ImageMagick to tell me the durations on my local machine or on GitHub Actions. I opened different_durations.png with https://davidmz.github.io/apng-js/ and it reported 4000 and 1000. If you think that ImageMagick isn't reading the duration according to the specification, then maybe that's something for you to raise with ImageMagick?
from pillow.
I don't know why I didn't check this before, but saving from APNG to APNG has the same issue; it not only when the source is a GIF.
from PIL import Image, ImageSequence
ddp = Image.open('different_durations.png')
ddp.save('ddc.png',save_all=True)
ddc = Image.open('ddc.png')
print([frame.info.get('duration') for frame in ImageSequence.Iterator(ddc)]) # [1000.0, 1000.0]
I think it probably is an issue in ImageMagick, or perhaps in libpng. I've filed an issue with ImageMagick though.
from pillow.
The ImageMagick issue is ImageMagick/ImageMagick#7371
from pillow.
ImageMagick has made a change to fix their problem.
from pillow.
Related Issues (20)
- Passing a numpy.ndarray as the size to Image.resize() works in 10.3.0, but not in 10.4.0 HOT 4
- WebP image saving broken from 10.3.0 to 10.4.0 HOT 8
- Python 3.13 free-threading compatibility HOT 6
- Pillow installed via Conda on Win10 errors with "ImportError: The _imaging extension was built for another version of Pillow or PIL" HOT 7
- Release Pillow 11.0.0 on October 15, 2024
- KHKT HOT 1
- GIF extents size change HOT 4
- Resize Error HOT 2
- GIF optimizer acts wrongly with black pixels when `disposal=2`
- Add CONTRIBUTORS.md HOT 1
- Save 16-bit PGM Image? HOT 2
- Possible to add an IFD to an image's EXIF data? HOT 2
- Having trouble installing libraqm HOT 23
- `Image.fromqimage()` raises `TypeError` HOT 2
- `alpha_composite` works poorly with transparency
- Windows Docker / nanoserver support HOT 7
- Save GIF without loss of quality HOT 22
- scientific-python-nightly-wheels-publish triggered in fork HOT 1
- `ImageFont` claims to load font sizes in pixels but seems to use points? HOT 6
- Problems HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pillow.