mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
better image save reporting
This commit is contained in:
@@ -58,7 +58,7 @@ def save_image(image, fn, ext):
|
||||
image.save(fn, format=image_format, quality=shared.opts.jpeg_quality, pnginfo=pnginfo_data)
|
||||
elif image_format == 'JPEG':
|
||||
if image.mode == 'RGBA':
|
||||
shared.log.warning('Saving RGBA image as JPEG: Alpha channel will be lost')
|
||||
shared.log.warning('Save: RGBA image as JPEG - removed alpha channel')
|
||||
image = image.convert("RGB")
|
||||
elif image.mode == 'I;16':
|
||||
image = image.point(lambda p: p * 0.0038910505836576).convert("L")
|
||||
|
||||
Reference in New Issue
Block a user