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

Image optimisation #6

Open
victordomingos opened this issue Apr 13, 2018 · 2 comments
Open

Image optimisation #6

victordomingos opened this issue Apr 13, 2018 · 2 comments

Comments

@victordomingos
Copy link
Contributor

I have tried this plugin and it works properly. It's a nice add-on to the Pelican workflow. However, while testing for performance and optimisation, I have found that the resulting thumbnails are not fully optimised.

I know there are not a lot of Python options with regards to image processing, and I like the fact that this plugin does not require any weird dependency, but maybe there is something that could be done with PIL itself, like using the qualityand optimize parameters, and/or making progressive JPGs (e.g.: https://stackoverflow.com/questions/6788398/how-to-save-progressive-jpeg-using-python-pil-1-1-7).

@victordomingos
Copy link
Contributor Author

In this page, there is a more complete example, that accounts for the cases when after optimisation the resulting file is not smaller that the original, non optimised one:

https://www.softwariness.com/articles/reduce-image-file-sizes-using-python

@victordomingos
Copy link
Contributor Author

Well, just submitted a PR for a quick change in the save function:
#7

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

No branches or pull requests

1 participant