Need help with smlr?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

jasonmoo
438 Stars 12 Forks 5 Commits 3 Opened issues

Description

Re-encode jpeg images with no perceivable quality loss.

Services available

!
?

Need anything else?

Contributors list

# 217,639
JavaScr...
Shell
convolu...
blur
3 commits
# 12,107
pytorch
Flask
Socket....
topic-m...
1 commit

smlr

  • This project is experimental and needs some tuning. *

Re-encode jpeg images with no perceivable quality loss.

Uses the butteraugli psychovisual comparison and k-ary search to determine the best jpeg quality setting that will not "appear" degraded.

Installation:

1. Clone https://github.com/google/butteraugli.
2. Run `make` in the `src/` directory to build the `compare_pngs` binary.
3. Move `compare_pngs` to some folder in your `PATH`
4. `go get github.com/jasonmoo/smlr`

Use:

smlr -if my_image.jpg -of my_image.best.jpg

Flags available: -if string file to process -of string output file -width int width to resize to. omitting either width or height will maintain proportion. -height int height to resize to. omitting either width or height will maintain proportion. -max float maximum deviation detected (default 1.1) -cores int how many cores to use (default runtime.NumCPU())

Inspired by:

https://medium.com/@duhroach/reducing-jpg-file-size-e5b27df3257c

LICENSE: MIT

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.