Mobileread
embedded images
#1  AlanHK 10-24-2019, 08:54 PM
I'm looking at a book that has a dozen images, all embedded inline as base64:

<img src="data:image/jpeg;base64,/9j/.....

It slows down editing the files, and takes more space than normal images, so I'd like to convert these to binary image files.

I can copy and paste each one to a file and run a base64 decode, but is there a faster way?

PS -- found a better way, still not ideal: merged the book into a single HTML file in Sigil, extracted that and open in Firefox. I can save each image as a normal image file. Have to manually import and replace the b64 images though.
Reply 

#2  JSWolf 10-25-2019, 01:08 PM
Quote AlanHK
I'm looking at a book that has a dozen images, all embedded inline as base64:

<img src="data:image/jpeg;base64,/9j/.....

It slows down editing the files, and takes more space than normal images, so I'd like to convert these to binary image files.

I can copy and paste each one to a file and run a base64 decode, but is there a faster way?

PS -- found a better way, still not ideal: merged the book into a single HTML file in Sigil, extracted that and open in Firefox. I can save each image as a normal image file. Have to manually import and replace the b64 images though.
What eBook has images setup in such as stupid fashion?
Reply 

#3  Turtle91 10-25-2019, 08:04 PM
Quote JSWolf
What eBook has images setup in such as stupid fashion?
Off the top of my head, I would guess: The one AlanHK is looking at.

Reply 

#4  FrustratedReader 10-26-2019, 09:39 AM
Gosh! Book images & text send by ancient email originally? I didn't imagine such a crazy thing was possible in epub!

How does exporting in RTF from Calibre work? Then import to Word or Writer, save as docx after checking and then convert to epub again with Calibre?
Reply 

Today's Posts | Search this Thread | Login | Register