diff --git a/cps/cover.py b/cps/cover.py index 89fa4770..6c42d73e 100644 --- a/cps/cover.py +++ b/cps/cover.py @@ -36,7 +36,7 @@ def cover_processing(tmp_file_path, img, extension): if use_IM: with Image(blob=img) as imgc: imgc.format = 'jpeg' - imgc.transform_colorspace('rgb') + imgc.transform_colorspace('srgb') imgc.save(filename=tmp_cover_name) return tmp_cover_name else: diff --git a/cps/helper.py b/cps/helper.py index 51eedb00..9a5f0104 100644 --- a/cps/helper.py +++ b/cps/helper.py @@ -905,7 +905,7 @@ def save_cover(img, book_path): else: imgc = Image(blob=io.BytesIO(img.content)) imgc.format = 'jpeg' - imgc.transform_colorspace("rgb") + imgc.transform_colorspace("srgb") img = imgc except (BlobError, MissingDelegateError): log.error("Invalid cover file content")