1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-26 04:47:40 +00:00

Transform color space to srgb instead of rgb to prevent dark images

This commit is contained in:
Wouter Koch
2025-01-05 01:49:46 +01:00
parent e7c2a85fd4
commit e4f1ce9c5a
2 changed files with 2 additions and 2 deletions

View File

@@ -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")