Win10 running in debug mode from source with a fully up-to-date 4.99.2
I think I've found a bug in the Editor when editing an image. These steps will reproduce it:
- Open any epub and open an HTML page containing either a JPG or a PNG, so that the image is visible in the Preview window.
- Right-click the image name and select 'Open'.
- Rotate the image (or use the Trim tool).
- The image disappears from Preview and debug shows this error message:
Code:
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 127.66492146596858 x 127.59069767441859
Using calibre Qt style: True
calibre css_parser 1.0.4
lxml etree: 4.3.3
Traceback (most recent call last):
File "preview.py", line 192, in requestStarted
File "preview.py", line 50, in get_data
File "image.py", line 155, in get_raw_data
File "canvas.py", line 337, in get_image_data
ValueError: Cannot save jpeg format images
GIFs don't appear to have the same problem as JPG/PNG.