Skip to content

Commit

Permalink
Add: performance section
Browse files Browse the repository at this point in the history
  • Loading branch information
eight04 committed May 12, 2018
1 parent 51b586c commit 33bfc6b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ A Python module to deal with APNG file.
Features
--------

- Merge multiple images into one APNG file. (It use Pillow to convert image into PNG format)
- Merge multiple images into one APNG file. (It use Pillow to convert images into PNG format)
- Read APNG file and extract each frames into PNG file.
- It doesn't do any optimization but only concat the images. This might be changed in the future.

Expand Down Expand Up @@ -72,6 +72,16 @@ Extract frames from an APNG file:
im = APNG.open("animation.png")
for i, (png, control) in enumerate(im.frames):
png.save("{i}.png".format(i=i))
Performance
-----------

If you want to convert some large JPGs into animation, the library has to convert your JPGs into PNGs then merge them into a single animation APNG file. The problems are:

1. It is extremely slow.
2. The file size of the APNG is extremely large. Probably 5x of the original or more.

In this case, I suggest trying an animation format called "ugoira", which is implemented by Pixiv.net. There is also an image viewer named "HoneyView" which can view it locally.

Document
---------
Expand Down

0 comments on commit 33bfc6b

Please sign in to comment.