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
simplejson - http://pypi.python.org/pypi/simplejson/
Python 2.5 - http://www.python.org/download/releases/2.5/ or above (probably not Python 3, though)
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
Metadata
Release files for smooshy 1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| smooshy-1.tar.gz | 5.5 kB | Without provenance | Details for smooshy-1.tar.gz |
Release files / smooshy-1.tar.gz
| Download URL | smooshy-1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bddc7e8695bde4d01ff973896f624ac3dbd3513cf8e25d538a5d07df7d4dbbcd
|
|
BLAKE2b-256 checksum How to use checksums |
7e25e8f0b17e548b0a2100ab4dd4e7c82f57303e9c5af90b9f946c411748bb53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for smooshy 1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.