Skip to content

Commit

Permalink
Merge 59ce679 into 1426ed3
Browse files Browse the repository at this point in the history
  • Loading branch information
albertusdev authored Jul 16, 2019
2 parents 1426ed3 + 59ce679 commit 1367e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/processor/native/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (e *Encoders) GetEncoder(img image.Image, ext string) Encoder {
return e.jpegEncoder
}
if ext == "png" {
if isOpaque(img) {
if e.options.JpegQuality != 100 && isOpaque(img) {
return e.jpegEncoder
}
return e.pngEncoder
Expand Down

0 comments on commit 1367e20

Please sign in to comment.