08-23-2019, 03:56 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Aug 2019
Device: Kindle
|
convert: png treated as txt
I'm trying to convert an epub to pdf in calibre. The conversion fails with:
assets/img.png contains data in TXT format converting to HTML Converting assets/tip-small.png ... Failed to run pipe worker with command: from calibre.gui2.viewer.printing import do_print; do_print() Python function terminated unexpectedly 'utf8' codec can't decode byte 0x89 in position 0: invalid start byte. -- Note: Markdown only accepts unicode input! (Error Code: 1) Obviously, calibre is interpreting the PNG as text, which then fails. This is on a fresh install of calibre 3.46.0 on Windows 10. Conversion of a different epub worked. Any ideas? Thanks Frank |
08-23-2019, 04:56 AM | #2 |
creator of calibre
Posts: 44,099
Karma: 22669824
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's ot calibrethatis interpreting the PNG as text it isthe EPUB file telling it to do that via its manifest. Openthe epub file in the calibre editor and fixthe manifest entry by eiditing the opf file.
|
Advert | |
|
08-23-2019, 05:21 AM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Aug 2019
Device: Kindle
|
|
Tags |
calibre, convert, pdf, png, utf-8 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
any kindle system command can convert png file to gif format? | kdusr | Kindle Developer's Corner | 8 | 11-19-2018 04:14 AM |
Convert SVG to PNG/JPEG in ePUB files | bunglegrind | Conversion | 2 | 04-24-2016 05:01 PM |
convert png & jpeg into wmv or mp3; Manga for my phone | Johnnyjohn | Introduce Yourself | 6 | 08-06-2010 01:51 PM |
where to get autorun.xml, icon.png, key.png, lut.bin for PRS-505 | obender | Sony Reader Dev Corner | 2 | 01-25-2009 03:20 PM |