Giter Club home page Giter Club logo

guetzli-recursively's Introduction

Guetzli is a Google program to optimize JPEG images. Unfortunately, it only works one file at a time. With this script in Python you can do it recursively a whole folder.

Image optimized with guetzli-recursively

after and before

Image Author: Senjuti Kundu

Install

Guetzli must be installed on your system. Follow the official instructions. Guetzli

and 2.7.10 or Python 3.

After

pip3 install guetzli-recursively

Use

guetzli_recursively [folder]

Example

guetzli_recursively img/

out

img/tasks.jpg
Save 6%
img/portfolio/idecrea/space.jpg
It is not necessary to optimize
img/portfolio/home.jpg
Save 3%

Quality

Must be greater than or equal to 84.

guetzli_recursively --quality 85 img/

Mem limit (bytes)

guetzli_recursively --memlimit 28000 img/

GUIs

guetzli-recursively's People

Contributors

samholt avatar tanrax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

guetzli-recursively's Issues

Adding Parameters

Hola Andros! Great script! It is exactly what I was l looking for. Just one question, how can I add the --quality parameter? I tried adding it in this line#24 like this but it didn't work:

call(['guetzli --quality 84', url, url_out])

Error in line 7

When I run it I get this:
File "guetzli-recursively.py", line 7 <!DOCTYPE html> ^ SyntaxError: invalid syntax

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.