mirror of
https://git.phreedom.club/localhost_frssoft/compy.git
synced 2024-11-27 02:21:34 +00:00
Add best compress level for png
This commit is contained in:
parent
264931d574
commit
ac99d6b3a8
|
@ -24,7 +24,10 @@ func (t *Png) Transcode(w *proxy.ResponseWriter, r *proxy.ResponseReader, header
|
|||
return err
|
||||
}
|
||||
} else {
|
||||
if err = png.Encode(w, img); err != nil {
|
||||
enc := &png.Encoder{
|
||||
CompressionLevel: png.BestCompression,
|
||||
}
|
||||
if err = enc.Encode(w, img); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue