mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
7d5446a4ee
commit
08bc3fd81b
@ -102,6 +102,7 @@ def image_to_data(img, compression_quality=95, fmt='JPEG', png_compression_level
|
||||
if is_jpeg:
|
||||
if img.hasAlphaChannel():
|
||||
img = blend_image(img)
|
||||
# QImageWriter only gained the following options in Qt 5.5
|
||||
if jpeg_optimized and hasattr(QImageWriter, 'setOptimizedWrite'):
|
||||
w.setOptimizedWrite(True)
|
||||
if jpeg_progressive and hasattr(QImageWriter, 'setProgressiveScanWrite'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user