File diff 53682a76e7bb → 4b3174d7b236
pydenticon/__init__.py
Show inline comments
 
@@ -246,6 +246,9 @@ class Generator(object):
 
        # Set-up a stream where image will be saved.
 
        stream = BytesIO()
 

	
 
        if image_format.upper() == "JPEG":
 
            image = image.convert(mode="RGB")
 

	
 
        # Save the image to stream.
 
        try:
 
            image.save(stream, format=image_format, optimize=True)