GithubHelp home page GithubHelp logo

Comments (3)

varnav avatar varnav commented on May 28, 2024

Sorry, I did not immediately realize that there is a more detailed documentation available here:

https://github.com/victordomingos/optimize-images/blob/master/docs/docs_EN.md

But still description is not completely clear IMO.

from optimize-images.

victordomingos avatar victordomingos commented on May 28, 2024

Hi. Thanks for your feedback on the documentation. That is really something I have tried to make as clear as possible, and I can see it can be improved. I am obviously open to suggestions in that field.

First of all, I should say I don’t recommend to run this over your original image files. Most of the operations will have a more or less visible impact on image quality and there is no undo option. Since it has the potential to destroy image files, it is strongly advised to use it only on copies.

Now, about what it does. It is mostly a user level interface to some functionality provided by Pillow. For JPEG images, for instance, it will by default open the file and save it again using a variable JPEG quality setting between 75 and 80 (determined automatically), stripping EXIF data, and using progressive mode if image size is greater than ~10kb. The user may change most of these parameters using the command line arguments.

The current defaults have been chosen with a specific use case in mind, which is image file size reduction for web.

from optimize-images.

varnav avatar varnav commented on May 28, 2024

Maybe it's worth to have example use for different use case - like I have - optimizing photo library. I made some test runs on my photo library, don't notice any quality loss (I think it's hard to tell the difference between 80 and 90+ quality). But would be great to have more conservative example.

from optimize-images.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.