diff --git a/webcompat/api/uploads.py b/webcompat/api/uploads.py index 055969c9b..e8d240996 100644 --- a/webcompat/api/uploads.py +++ b/webcompat/api/uploads.py @@ -86,6 +86,8 @@ def save(self): # Optimize further the image compression for these formats if self.image_object.format in ['JPEG', 'JPG', 'JPE', 'PNG']: save_parameters['optimize'] = True + # Convert PNG to JPEG. See issue #1051 + file_dest = 'jpg'.join(file_dest.rsplit('png', 1)) # If animated GIF, aka duration > 0, add save_all parameter if (self.image_object.format == 'GIF' and self.image_object.info['duration'] > 0):