imaging question in python
from maya_the_good_apple@sh.itjust.works to programming@programming.dev on 16 Apr 12:53
https://sh.itjust.works/post/58619938

How do I convert a batch of .pngs into a single .apng?

#programming

threaded - newest

mbirth@lemmy.ml on 16 Apr 13:19 next collapse

I’d use ImageMagick, but if you want to do it in plain* Python, here’s an example: stackoverflow.com/a/79683407

* Well, you’ll need pyAPNG.

maya_the_good_apple@sh.itjust.works on 16 Apr 16:39 collapse

I used pillow. It has apng support now.

seedlord_com@lemmy.zip on 16 Apr 16:34 collapse

On top of the other advice, Pillow is definitely worth considering for this. It’s a solid library that fits this use case perfectly.

maya_the_good_apple@sh.itjust.works on 16 Apr 16:38 collapse