readme, todo updates

This commit is contained in:
Your Name 2022-03-07 09:03:40 -05:00
parent 742ff9974f
commit 626ba8d0ef
2 changed files with 13 additions and 3 deletions

View File

@ -7,15 +7,23 @@ difference requirement set.
By default it operates in a "dry run" mode where images are not replaced but individual and total savings are reported at the end, unless you supply the '-replace' flag. By default it operates in a "dry run" mode where images are not replaced but individual and total savings are reported at the end, unless you supply the '-replace' flag.
# why? # Why?
Poorly optimized images in most contexts waste space and bandwidth unnecessarily. JPEG compression was designed to highly optimize photos with Poorly optimized images in most contexts waste space and bandwidth unnecessarily. JPEG compression was designed to highly optimize photos with
little or no visually identifiable differences in default conditions, and for scenarios where absolute quality is less important it can compress little or no visually identifiable differences in default conditions, and for scenarios where absolute quality is less important it can compress
even farther. Generally quality levels below 75 are where you start to notice a difference. even farther. Generally quality levels below 75 are where you start to notice a difference.
# usage # Installtion
Recursively check all images starting from the current path. Calculate actions and total svings but don't make any changes. With a recent Go compiler, installation is as easy as:
```
go install git.teamworkapps.com/shortcut/imageoptimizer@latest
```
# Usage
Recursively check all images starting from the current path. Calculate actions and total savings but don't make any changes.
``` ```
imageoptimizer -recursive -diff 25 imageoptimizer -recursive -diff 25

2
TODO.txt Normal file
View File

@ -0,0 +1,2 @@
. Add support for converting PNG and GIF without alpha channels to JPG
. Add support for webp output - can be used with web servers to serve webp when supported by browsers