From 10c694c3d6dcfb38073d5abd96e0e8231a540fa9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 3 Feb 2019 17:47:23 +0100 Subject: Fix gallery generation Some upstream library has changed to error out when trying to save RGB images as JPEG. --- extra_plugins/gallery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extra_plugins') diff --git a/extra_plugins/gallery.py b/extra_plugins/gallery.py index 84d5a6f..3bde0cb 100644 --- a/extra_plugins/gallery.py +++ b/extra_plugins/gallery.py @@ -106,7 +106,7 @@ class Photo(): # TODO: Write other useful transforms here! - self.image.save(self.output_file, "JPEG") + self.image.convert("RGB").save(self.output_file, "JPEG") -- cgit v1.2.1