From a84856c8e951d2b2f172b510350e5998a8f2b982 Mon Sep 17 00:00:00 2001 From: Brian Hoffman Date: Fri, 24 Apr 2020 09:32:32 -0400 Subject: [PATCH] Bump quality of uploaded images from 75 to 100% --- core/images.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/images.go b/core/images.go index 41c86aeb55..51ce5c7390 100644 --- a/core/images.go +++ b/core/images.go @@ -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 }