diff --git a/app/scodoc/sco_photos.py b/app/scodoc/sco_photos.py index 1e24c6dff9..705535902c 100644 --- a/app/scodoc/sco_photos.py +++ b/app/scodoc/sco_photos.py @@ -303,6 +303,7 @@ def save_image(etudid, data): filename = get_new_filename(etudid) path = os.path.join(PHOTO_DIR, filename) log("saving %dx%d jpeg to %s" % (img.size[0], img.size[1], path)) + img = img.convert("RGB") img.save(path + IMAGE_EXT, format="JPEG", quality=92) # resize: img = scale_height(img)