Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-23-2019, 03:56 AM   #1
wuebbel
Junior Member
wuebbel began at the beginning.
 
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
wuebbel is offline   Reply With Quote
Old 08-23-2019, 04:56 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-23-2019, 05:21 AM   #3
wuebbel
Junior Member
wuebbel began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2019
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
fix the manifest entry by editing the opf file.
Correct. I wonder why a commercial epub file contains this error. Thanks a lot! Fixed my problem.

Frank
wuebbel is offline   Reply With Quote
Reply

Tags
calibre, convert, pdf, png, utf-8


Forum Jump

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


All times are GMT -4. The time now is 04:59 PM.


MobileRead.com is a privately owned, operated and funded community.