Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Bump quality of uploaded images from 75 to 100% #2061

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ func (n *OpenBazaarNode) addImage(img image.Image, imgPath string) (string, erro
if err != nil {
return "", err
}
err = jpeg.Encode(out, img, nil)
q := &jpeg.Options{Quality: 100}
err = jpeg.Encode(out, img, q)
if err != nil {
return "", err
}
Expand Down