GithubHelp home page GithubHelp logo

jamoon / python-smooshy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from josegonzalez/python-smooshy

0.0 1.0 0.0 112 KB

Python binary to losslessly compress images using smush.it

License: MIT License

Python 100.00%

python-smooshy's Introduction

smooshy

Huh?

This is a simple script written in Python to compress images. Often, images aren't as small as they could be.

Smooshy.py solves this problem by allowing you to compress all of those nasty extra bytes away without all the usual confusion surrounding fiddling around in the Save for Web Photoshop dialog.

How?

In fact, Smooshy is basically just a script which takes advantage of the awesome [smush.it](http://smush.it/) -- all your images are sent for compression over to smush.it -- so [be careful you don't send something you want to keep ultra-private](http://smush.it/faq.php).

It's all safe

Smooshy creates backups of all your files while it's sprinkling its pixie dust over your images. If something goes wrong, your originals won't disappear into a black hole.

Also, if the resulting smooshed file is no smaller than the original, it won't be used.

Requirements

Usage

Current Directory:

cd <directory of your choice>
smooshy .

Specific files/directories:

smooshy <as many files or directories as you'd like to smush here>

Within Python:

from smooshy import smoosher
smoosher.Smoosher(<file path).smoosh()
# Smooshes the file
smoosher.recursive_smoosher([<file or directory>... ])
# Smooshes all files / all files recursively in directories

Installation

Using PIP:

From Github:

pip install git+git://github.com/josegonzalez/smooshy.git#egg=smooshy

From PyPI:

pip install smooshy==1

Credits

Lots of people

python-smooshy's People

Contributors

benlemasurier avatar josegonzalez avatar obeattie avatar selwin avatar zackkitzmiller avatar

Watchers

 avatar

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.