Skip to content
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

Implement PNG optimizer with pillow #2068

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cthbleachbit
Copy link

Currently all Image optmizers will fork/exec on an external program for every single image tile generated from dispatcher. This drags the performance in the optimizing phase due to expensive user/kernel space switching during process spawning.

Using PIL/pillow allows image operations without launching external programs. Hopefully this is an acceptable tradeoff between performance and resulting file size.

Currently all Image optmizers will fork/exec on an external program for
every single image tile generated from dispatcher. This drags the
performance in the optimizing phase due to expensive user/kernel space
switching.

Using PIL/pillow allows image operations without launching external
programs. Hopefully this is an acceptable tradeoff between performance
and resulting file size.
For some reason PIL is not part of requirements.txt, but seems to be
assumed to exist in other parts of Overviewer. Programmatically imported
modules cannot be pickled and thus fails under multiprocessing, so we
are taking the assumption and import PIL early.
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.

1 participant