repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
bb22137
parent
b3da118
author
Eric Bower
date
2022-09-27 18:08:24 +0000 UTC
fix(imgs): set level to 1 for lossless

warning: this was the only value I could supply to get this to work
1 files changed,  +1, -1
M shared/img.go
+1, -1
1@@ -123,7 +123,7 @@ func (h *ImgOptimizer) EncodeWebp(writer io.Writer, img image.Image) error {
2 	if h.Lossless {
3 		options, err = encoder.NewLosslessEncoderOptions(
4 			encoder.PresetDefault,
5-			int(h.Quality),
6+			1, // only value that I could get to work
7 		)
8 	} else {
9 		options, err = encoder.NewLossyEncoderOptions(