similar error with pdfs in browser
when viewing pdf in browser, a broken image is also appearing as the first page of the book, i think this console error is connected:-
Traceback (most recent call last):
File "/root/calibre/src/calibre/db/cache.py", line 1322, in set_metadata
self._set_cover({book_id: cdata})
File "/root/calibre/src/calibre/db/cache.py", line 1247, in set_cover
self.backend.set_cover(book_id, path, data)
File "/root/calibre/src/calibre/db/backend.py", line 1446, in set_cover
save_cover_data_to(data, path)
File "/root/calibre/src/calibre/utils/img.py", line 252, in save_cover_data_to
f.write(image_to_data(img, compression_quality, fmt, compression_quality // 10) if changed else data)
File "/root/calibre/src/calibre/utils/img.py", line 164, in image_to_data
raise ValueError('Failed to export image as ' + fmt + ' with error: ' + w.errorString())
ValueError: Failed to export image as JPEG with error: Unsupported image format
|