![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#2 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
#4 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |