|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#31 | |||
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 292
Karma: 364036
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
|
Three replies here came in while I was working on the release. Here are my answers.
Quote:
Code:
cargo install --locked --git https://github.com/ePubLift/epublift --tag cli-v3.3.0 epublift --features epub34,metadata,pdf-ocr,markdown,validate Quote:
The images part: you are right, and I am changing it. Keep original will become the default, on the web page and on the command line, and WebP will be something you choose. It will come together with the conversion fixes. Quote:
|
|||
|
|
|
|
|
#32 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,755
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Oh and can you build in options to convert from Webp, AVIF, and JXL into JPG or PNG? If ePub start being in the wild with these new image formats, a lot of people won't be happy. But that will be happy if they can convert the images to a format that can be used.
|
|
|
|
|
|
#33 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 292
Karma: 364036
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
|
Yes, I have an idea for a tool that converts between EPUB3 and EPUB2 and allows you to select image formats during the process. Since I haven't finished the core tasks yet, I can't attend to the other work.
- Fixing epubveri errors - Writing plugins for epubsana - Developing kepubverto and then writing its plugins - .... Phew Captain... there is so much work to do. |
|
|
|
|
|
#34 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,755
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Just allow image conversion without converting the ePub in any other way. And if you want the ePub to remain as ePub3 but be backwards compatible, these image formats, need to be converted in place and the OPF updated. The thing is, these new (new to ePub) image formats should never have been sanctioned. The W3C are becoming really stupid (IMHO). |
|
|
|
|
|
|
#35 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 292
Karma: 364036
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
|
epublift 4.3.0 (command line) and 1.28.1 (web page) are out, and https://epublift.itpax.net is already running them. This is my first post here since 3.3.0, so it covers everything since then. As before, nothing touches the book you start from: Optimize, Repair and the metadata editor all write a new file, and Validate and Repair run in your browser without uploading the book.
Images are kept as they are by default I said in my last reply that this would come with the conversion fixes, and it has. Optimize now upgrades the structure and leaves JPEG and PNG untouched, on the web page and on the command line. WebP is something you ask for: the Keep original choice is preselected on the web page, and on the command line it is --webp. If you have a script that relied on WebP output, add that flag. JSWolf, on your last post: converting WebP, AVIF or JPEG XL images that a book already has into JPEG or PNG is not there yet. You are right that it should not depend on the EPUB version. It should convert the images, update the OPF in place, and leave everything else in the book as it is. It is on my list, but I can't give a date. The one thing I still have to decide is the output. PNG keeps the picture exactly but usually makes the file larger, and JPEG keeps it small but loses a little again, so the choice should probably be yours. Optimize no longer makes valid books invalid These are the conversion problems I mentioned last time. Until 4.0, most valid EPUB 2 books came out of Optimize with validation errors that the upgrade itself had added. They came from the upgrade carrying EPUB 2 markup that EPUB 3 does not allow. The upgrade now does this:
Where I could not be sure, I left things alone. If the book's own CSS already sets the property an attribute would set, or one of its selectors reads the attribute, the attribute stays as written. The book then stays invalid over it, and the command line's report says how many were left and why. font color and size="7" are left too. Repair first, then Optimize Optimize fixes what the upgrade itself would break. Defects the book already had are Repair's job, and Repair asks before any change that needs a decision. The web page's tabs are now in that order: Validate, Repair, Metadata, Optimize. For the cleanest result, repair the book, then optimize the repaired copy. Repair (epubsana 0.34.0) also learned new fixes since 3.3.0. Two of them come from books in my own library. One is a list placed directly inside another list instead of inside its item, which is common in tables of contents. The other is an image declared as one standard type but holding another, such as a PNG declared as JPEG. Smaller changes
PeterT, crates.io is still on my list. One dependency is only available from its git repository, and crates.io refuses that. Until it has a release, the install command is the same as before with the new tag: Code:
cargo install --locked --git https://github.com/ePubLift/epublift --tag cli-v4.3.0 epublift --features epub34,metadata,pdf-ocr,markdown,validate |
|
|
|
|
|
#36 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 292
Karma: 364036
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
|
epublift 5.0.0 (command line) and 1.31.0 (web page) are out, and https://epublift.itpax.net is already running them. This covers everything since my post on 4.3.0. The book you start from stays as it is: Optimize, Repair and the metadata editor write a new file, and Validate and Repair run in your browser without uploading the book.
If you call the command line from a script, 5.0 will break it What 4.x accepted with a warning is now an error, so that every tool in the family takes the same options. The web page is not affected.
The full table is in Moving from 4.x to 5.0. If you converted images to WebP before 4.5.2, convert again from your original This only concerns books you asked to have converted to WebP. Images kept as they are, the default since 4.0, were not touched. There were two bugs, both fixed since 4.5.2 and web 1.29.4:
What Optimize does differently
Compared with 4.6.0 on my own test shelf, repairing first and then upgrading, no book gained errors and the text and image counts did not change. Three bugs that could damage or worsen a book are fixed:
Your original, and -o Last time I wrote that nothing touches the book you start from. There was one exception that I should have named: until 4.5.0, an -o naming the input replaced it on the default command, meta set, meta enrich and import. That is now refused. Smaller changes
JSWolf, converting WebP, AVIF or JPEG XL images into JPEG or PNG is still not there. I want to build it on imagoverto, the family's new image converter, rather than keep a second copy of that code, and I still can't give a date. PeterT, crates.io is still blocked by the same dependency. Until it has a release, there are ready binaries for Linux, macOS and Windows on the release page, and the install command is the same with the new tag: Code:
cargo install --locked --git https://github.com/ePubLift/epublift --tag cli-v5.0.0 epublift --features epub34,metadata,pdf-ocr,markdown,validate |
|
|
|
|
|
#37 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 292
Karma: 364036
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
|
epublift 5.3.0 (command line) and 1.34.0 (web page) are out, and https://epublift.itpax.net is running them. This covers 5.1 to 5.3, everything since my post on 5.0. As before, the book you start from stays as it is, and Validate and Repair run in your browser without uploading it.
Validate is stricter: some books that passed will now fail Validate and epublift check now run epubveri 0.40. Where the EPUB specification and epubcheck disagree, it follows the specification; before, it followed epubcheck. So a book can now pass epubcheck and fail here, or the other way round. Nothing in your book changed, only the verdict. The case you are most likely to meet is an image with no alt in an EPUB 3 book. EPUB 2 does not require alt, so an EPUB 2 book upgraded by Optimize can now be reported invalid for that alone. Optimize does not write alt="" for you: that marks an image as decorative, which is wrong for a picture that carries content. Describing the image is an editor's job. On my own test shelf of 562 books, 2 originals and 24 upgraded books that passed before now fail. Apart from that, what Repair, Optimize and kepub write is the same as in 5.2, with one fix: an image alone in a figure with a caption needs no alt, and kepub no longer wraps it in a span that made it an error. If a retailer asks for epubcheck by name, run epubcheck as well. PDF import
The web page's Import PDF now reads scans by OCR as well, up to 50 pages. A longer scan needs the command line. PeterT, crates.io is still blocked by the same dependency. The install command takes the new tag: Code:
cargo install --locked --git https://github.com/ePubLift/epublift --tag cli-v5.3.0 epublift --features epub34,metadata,pdf-ocr,markdown,validate |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| iLoveEPUB.com — free in-browser EPUB toolbox: compress / merge / split / convert / fi | openminimax | Self-Promotions by Authors and Publishers | 0 | 09-19-2026 12:35 AM |
| Creating epub/kepub books (docx→epub/kepub via MS Word→Calibre) | SJC-Caron | ePub | 18 | 04-21-2016 12:10 PM |
| How to shrink ePub file size | karenbryant | ePub | 33 | 03-12-2016 02:21 PM |
| KePub Toolbox | Thasaidon | Kobo Reader | 1 | 08-08-2012 08:49 AM |
| Validate epub | carlol | Workshop | 4 | 08-10-2011 08:52 PM |