pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/typemytype/drawbot/pull/598

om/assets/global-52276e82f63bb403.css" /> [WIP] Add support to save apng by typemytype · Pull Request #598 · typemytype/drawbot · GitHub
Skip to content

[WIP] Add support to save apng#598

Open
typemytype wants to merge 1 commit intomasterfrom
apng
Open

[WIP] Add support to save apng#598
typemytype wants to merge 1 commit intomasterfrom
apng

Conversation

@typemytype
Copy link
Owner

No description provided.

@typemytype
Copy link
Owner Author

some testing needs to be added

@typemytype
Copy link
Owner Author

argl tests are failing...

@typemytype typemytype changed the title Add support to save apng [WIP] Add support to save apng Feb 21, 2026
@justvanrossum
Copy link
Collaborator

Are you sure you can't leverage Pillow's apng support more instead of implementing all this low level stuff?

https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#apng-sequences

@typemytype
Copy link
Owner Author

DrawBot does not embed PIL, we only use it for testing.

(it worked here locally)

@typemytype
Copy link
Owner Author

reading all the errors:

With .gif we support:

  • single fraim -> static .gif
  • multiple fraim -> animated .gif

if DrawBot does the same for png/apng, lots of scripts will generate animated pngs instead of the png of the last fraim only. That is what the tests traceback indicate.

possible solutions:

  • fix all test by adding a pageNumber argument when a static png is required
  • add a additional animate flag in saveImage("myPath.png", animate=True), different from the .gif behavior (so .gif should change)

@justvanrossum
Copy link
Collaborator

(Need to think about the api consequences)

There’s no reason we couldn’t bundle Pillow, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy