View Single Post
Old 12-26-2019, 07:03 AM   #85
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
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:
  1. 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.
  2. Right-click the image name and select 'Open'.
  3. Rotate the image (or use the Trim tool).
  4. 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.
jackie_w is offline   Reply With Quote