diff --git a/weasyprint/pdf/stream.py b/weasyprint/pdf/stream.py index 518d5d3f1c..3b6059b9d0 100644 --- a/weasyprint/pdf/stream.py +++ b/weasyprint/pdf/stream.py @@ -423,7 +423,7 @@ def add_image(self, pillow_image, image_rendering, optimize_size): }) optimize = 'images' in optimize_size - if pillow_image.format == 'JPEG': + if pillow_image.format in ('JPEG', 'MPO'): extra['Filter'] = '/DCTDecode' image_file = io.BytesIO() pillow_image.save(image_file, format='JPEG', optimize=optimize)