|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#31 | |||
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 255
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,448
Karma: 154365103
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.
|
|
|
|
| Advert | |
|
|
|
|
#33 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 255
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,448
Karma: 154365103
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: 255
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 |
|
|
|
| Advert | |
|
|
![]() |
| Thread Tools | Search this Thread |
|
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-18-2026 11:35 PM |
| Creating epub/kepub books (docx→epub/kepub via MS Word→Calibre) | SJC-Caron | ePub | 18 | 04-21-2016 11:10 AM |
| How to shrink ePub file size | karenbryant | ePub | 33 | 03-12-2016 01:21 PM |
| KePub Toolbox | Thasaidon | Kobo Reader | 1 | 08-08-2012 07:49 AM |
| Validate epub | carlol | Workshop | 4 | 08-10-2011 07:52 PM |