Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-24-2019, 07:54 PM   #1
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
extract embedded images

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.

Last edited by AlanHK; 10-24-2019 at 08:20 PM.
AlanHK is offline   Reply With Quote
Old 10-25-2019, 12:08 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by AlanHK View Post
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?
JSWolf is offline   Reply With Quote
Advert
Old 10-25-2019, 07:04 PM   #3
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,348
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by JSWolf View Post
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.

Turtle91 is offline   Reply With Quote
Old 10-26-2019, 08:39 AM   #4
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,025
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
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?
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can images be embedded in HTML > MOBI? jddh Plugins 9 10-20-2017 12:29 AM
AZW3 Conversions missing embedded images zaqxsw Conversion 3 11-24-2016 07:48 PM
EPUB->MOBI Links embedded in images being lost oldghost Conversion 2 03-02-2014 04:38 AM
Embedded images: landscape or portrait? EricDP General Discussions 12 07-10-2010 09:59 AM
PDF Embedded Images Display Corrupt? RogueTrooper Sony Reader 3 04-04-2010 01:00 PM


All times are GMT -4. The time now is 08:36 PM.


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