View Single Post
Old 08-19-2020, 11:15 AM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,288
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Sarmat89 View Post
I'm trying to convert an EPUB file to the FB2 format. All PNG images are converted into JPEG for some reason.
I was under the impression that a FB2 ebook file stored images as Base64 encoded blobs. Personally, I was not impressed the one time I converted some epubs to fb2 for a friend. A simple epub with 7 or 8 full page images went from 12.8MiB to 207.4Mib.

Just looked at that old conversion and the Base64 images show as:

6 as <binary id="img_5" content-type="image/png"> ... </binary>

2 as <binary id="img_0" content-type="image/jpeg"> ... </binary>

The original images are 1 GIF, 1 TIFF, 4 PNG and 2 JPEG ( 1 of the jpegs is in an svg wrapper). The bolded number varies from 0 to 7.

Last edited by DNSB; 08-19-2020 at 11:25 AM. Reason: Added old conversion image type comment
DNSB is offline   Reply With Quote