From eb026f2e22f0c7b7ffe82f331d6ec7729fe6a6cf Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Wed, 21 Oct 2020 14:26:26 +0100 Subject: [PATCH] Use "sRBG" colourspace. This seems to be the correct setting, and fixes a bug with the colouring of uploaded images. Further details: https://imagemagick.org/script/color-management.php https://www.imagemagick.org/discourse-server/viewtopic.php?t=20501 --- app/models/spree/image.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/image.rb b/app/models/spree/image.rb index a5d932d95c..c618631015 100644 --- a/app/models/spree/image.rb +++ b/app/models/spree/image.rb @@ -11,7 +11,7 @@ module Spree default_style: :product, url: '/spree/products/:id/:style/:basename.:extension', path: ':rails_root/public/spree/products/:id/:style/:basename.:extension', - convert_options: { all: '-strip -auto-orient -colorspace RGB' } + convert_options: { all: '-strip -auto-orient -colorspace sRGB' } # save the w,h of the original image (from which others can be calculated) # we need to look at the write-queue for images which have not been saved yet