danielmorell / cruncher Goto Github PK
View Code? Open in Web Editor NEWSimple CLI app to optimize images for the web.
Home Page: https://www.danielmorell.com/tools/cruncher
License: MIT License
Simple CLI app to optimize images for the web.
Home Page: https://www.danielmorell.com/tools/cruncher
License: MIT License
There is currently no way to keep the original aspect ratio of an image. Keeping the orientation of the image is a good start, but this is an important feature to make this a well rounded image optimization tool.
We should add --keep-aspect
CLI parameter and a keep-aspect
JSON config option. The CLI parameter should also be added to the multi-version method.
Images with uppercase characters in the file extension are not crunched.
Change order of color mode conversion and ICC profile conversion. Changing the color mode first can cause the ICC profile to not be converted correctly.
Lines 45 to 46 in 4c3f992
If the --append
CLI option is not included or "append":
JSON option is set to null
or not included the file name has 'None' added to the end.
Thus some-image.jpg
becomes some-imageNone.jpg
.
Running Cruncher using CLI arguments causes a KeyError: 'subsampling'
exception in cruncher.py
line 114 because the subsampling
key is missing.
Subsampling should be set to -1
when CrunchHandler
runs the generate_versions()
method.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.