Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 12-03-2020, 03:22 PM   #1546
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,758
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 moehong View Post
Fantastic plugin! One feature I'd find fantastically useful:

The ability to bulk-compress. Right now, the reader portion of the app includes under tools the ability to compress images either losslessly or lossy. The latter often can cut larger books (and image-intensive kids or textbooks) by 95%+ in size while keeping the images perfectly acceptable at tablet size. I generally use a 40 or 50 setting and can pretty reliably cut at least 75% off the size of cookbooks even. That said, it's incredibly time-consuming to do this over and over when you have 100+ books to compress. Being able to compress directly from Calibre, without having to open every single book individually, run the tool, and save each book ... that would be a dream!
It's the editor that allows you to lossless compress the images and also allows recompressing at the level you set.
JSWolf is offline   Reply With Quote
Old 12-03-2020, 03:22 PM   #1547
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by moehong View Post
Being able to compress directly from Calibre, without having to open every single book individually, run the tool, and save each book ... that would be a dream!
Why not just use calibre's built-in tool 'Polish books' which works on multiple books. That has a checkbox for 'Losslessly compress images'.

You might need to add it to one of your menus via Prefs > Toolbars & Menus
jackie_w is offline   Reply With Quote
Old 12-03-2020, 03:37 PM   #1548
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Polish e-books ( a Calibre standard tool) can do that. Just add it to the Toolbar of choice from Preferences: behavior: toolbars
theducks is offline   Reply With Quote
Old 12-03-2020, 05:35 PM   #1549
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,758
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 theducks View Post
Polish e-books ( a Calibre standard tool) can do that. Just add it to the Toolbar of choice from Preferences: behavior: toolbars
Some major drawbacks to this way of lossless compression are that it does every possible format in the listing and not just the one you want and you cannot specify how much to recompress the images. So you don't get the recompression.
JSWolf is offline   Reply With Quote
Old 12-03-2020, 05:56 PM   #1550
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Also, re: lossless compression - in general, running it can paradoxically increase the filesize. If the image is already compressed (ever tried putting a zip file inside another zip file?), or if it's sufficiently complex that the compressor can't efficiently smoosh it down. I think Polish ePub might account for this by not replacing if there's no net reduction, but I'm not 100% on that.

Last edited by ownedbycats; 12-03-2020 at 06:01 PM.
ownedbycats is offline   Reply With Quote
Old 12-03-2020, 06:41 PM   #1551
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,758
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 ownedbycats View Post
Also, re: lossless compression - in general, running it can paradoxically increase the filesize. If the image is already compressed (ever tried putting a zip file inside another zip file?), or if it's sufficiently complex that the compressor can't efficiently smoosh it down. I think Polish ePub might account for this by not replacing if there's no net reduction, but I'm not 100% on that.
Lossless compression will not replace an existing image if the image is any larger or cannot be compressed.
JSWolf is offline   Reply With Quote
Old 12-04-2020, 05:15 PM   #1552
moehong
Junior Member
moehong began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2019
Device: Kobo Aura One
lossless vs lossy

What would make it REALLY useful would be if you could specify lossy compression – but from what I can tell, the polish command does not allow that
moehong is offline   Reply With Quote
Old 12-04-2020, 07:06 PM   #1553
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by moehong View Post
What would make it REALLY useful would be if you could specify lossy compression – but from what I can tell, the polish command does not allow that
At any rate, image modification is beyond Modify’s standard scope.
Rev. Bob is offline   Reply With Quote
Old 12-06-2020, 01:15 PM   #1554
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,758
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 moehong View Post
What would make it REALLY useful would be if you could specify lossy compression – but from what I can tell, the polish command does not allow that
That is something Modify ePub does not do and I don't even know if it's possible to do. Your solution is to use the editor to recompress the graphics.
JSWolf is offline   Reply With Quote
Old 12-18-2020, 12:52 PM   #1555
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,243
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I modified the cover for an epub and tried to use Modify Epub to update the cover.

Spoiler:
calibre, version 5.7.2
ERROR: Modify ePub failed: No ePub files were updated


Modifying: C:\Users\David\AppData\Local\Temp\calibre_x_x6my6u \fuo6ugad_modify_epub\10364.epub

Updating metadata and cover

Parsing xml file: OEBPS/content.opf

Looking for Adobe xpgt files and links to remove

Looking for pagemaps

Looking for Google Play pagemaps

Looking for Adobe DRM meta tags to remove

Looking for all jackets

Looking for inline javascript blocks to remove

Looking for .js files to remove

Applying smarten punctuation

Smartened punctuation in: OEBPS/Text/Section0001.xhtml

Stripping Kobo remnants

Looking for files to remove: ['iTunesMetadata.plist', 'iTunesArtwork']

Looking for files to remove: ['META-INF/calibre_bookmarks.txt']

Looking for files to remove: ['.DS_Store', 'thumbs.db']

Looking for unused images

Removing unused image: OEBPS/cover.jpeg

Stripping spans

Insert or replace cover

...Looking for guide cover reference

Found guide cover reference to: Text/titlepage.xhtml

Related manifest item id: titlepage

...Looking for meta cover

Found meta tag with cover id: cover

Meta item removed: cover

...Looking for other.ms-* guide references to clean out

...Working with possible existing cover: Text/titlepage.xhtml

Guide reference removed: Text/titlepage.xhtml

...Looking for TOC navpoint for this cover

Cooper & Amelia’s First Christmas - ERROR: Traceback (most recent call last):

File "calibre_plugins.modify_epub.modify", line 78, in process_book

File "calibre_plugins.modify_epub.modify", line 204, in _process_book

File "calibre_plugins.modify_epub.modify", line 897, in _insert_replace_cover

File "calibre_plugins.modify_epub.covers", line 59, in insert_or_replace_cover

File "calibre_plugins.modify_epub.covers", line 141, in _get_and_clean_existing_cover_item

File "calibre_plugins.modify_epub.container", line 308, in get_toc_navpoint_content

AttributeError: 'NoneType' object has no attribute 'xpath'



ePub not changed after 0.09 seconds
DNSB is offline   Reply With Quote
Old 12-18-2020, 01:17 PM   #1556
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DNSB View Post
I modified the cover for an epub and tried to use Modify Epub to update the cover.
This version shouldn't throw the exception, but I don't know if what the plugin does in that case is correct. Let me know what happens.

EDIT: Released this version.

Last edited by chaley; 12-18-2020 at 04:51 PM.
chaley is offline   Reply With Quote
Old 12-18-2020, 03:54 PM   #1557
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,243
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by chaley View Post
This version shouldn't throw the exception, but I don't know if what the plugin does in that case is correct. Let me know what happens.
It seems to work as expected. I checked with the old version and same error message. Installed the new version, no error message and the cover image was updated in the epub.

Thanks for the fast turnaround!
DNSB is offline   Reply With Quote
Old 12-23-2020, 09:39 PM   #1558
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by chaley View Post
This version shouldn't throw the exception, but I don't know if what the plugin does in that case is correct. Let me know what happens.

EDIT: Released this version.
As DNSB said, thanks for the quick fix!
Rev. Bob is offline   Reply With Quote
Old 03-02-2021, 05:16 PM   #1559
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,243
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I just ran into two epubs which give the same error as in my message on 2020-Dec-18.

Spoiler:
Code:
calibre, version 5.12.0
ERROR: Modify ePub failed: No ePub files were updated

Modify ePubs version (1, 6, 2)
Logfile for book ID 66 (Grantville Gazette, Volume 94 / Bjorn Hasseler)
Job details 66

  Modifying:  C:\Users\David\AppData\Local\Temp\calibre_am05j6oa\ntxu9_wo_modify_epub\66.epub

	Updating metadata and cover

	  Parsing xml file: content.opf

	Looking for Adobe xpgt files and links to remove

	Looking for pagemaps

	Looking for Google Play pagemaps

	Looking for Adobe DRM meta tags to remove

	Looking for all jackets

	Looking for inline javascript blocks to remove

	Looking for .js files to remove

	Applying smarten punctuation

	  Smartened punctuation in: contents.xhtml

	  Smartened punctuation in: index_03.xhtml

	  Smartened punctuation in: index_04.xhtml

	  Smartened punctuation in: index_05.xhtml

	  Smartened punctuation in: index_06.xhtml

	  Smartened punctuation in: index_07.xhtml

	  Smartened punctuation in: index_08.xhtml

	  Smartened punctuation in: index_09.xhtml

	  Smartened punctuation in: index_10.xhtml

	  Smartened punctuation in: index_11.xhtml

	  Smartened punctuation in: nav.xhtml

	Stripping Kobo remnants

	  Stripped Kobo spans in: index_02.xhtml

	  Stripped Kobo spans in: index_03.xhtml

	  Stripped Kobo spans in: index_04.xhtml

	  Stripped Kobo spans in: index_05.xhtml

	  Stripped Kobo spans in: index_06.xhtml

	  Stripped Kobo spans in: index_07.xhtml

	  Stripped Kobo spans in: index_08.xhtml

	  Stripped Kobo spans in: index_09.xhtml

	  Stripped Kobo spans in: index_10.xhtml

	  Stripped Kobo spans in: index_11.xhtml

	Looking for files to remove: ['iTunesMetadata.plist', 'iTunesArtwork']

	Looking for files to remove: ['META-INF/calibre_bookmarks.txt']

	Looking for files to remove: ['.DS_Store', 'thumbs.db']

	Looking for unused images

	Stripping spans

	Insert or replace cover

	...Looking for guide cover reference

	...Looking for meta cover

	  Found meta tag with cover id: cover

	  Meta item removed: cover

	...Looking for other.ms-* guide references to clean out

	...Working with possible existing cover: cover.jpeg

	...Looking for cover html page since identified cover is an image

	  Found this cover page: titlepage.xhtml

	  Switching to use this for cover page: titlepage.xhtml

	...Looking for TOC navpoint for this cover

Grantville Gazette, Volume 94 - ERROR: Traceback (most recent call last):

  File "calibre_plugins.modify_epub.modify", line 78, in process_book

  File "calibre_plugins.modify_epub.modify", line 204, in _process_book

  File "calibre_plugins.modify_epub.modify", line 897, in _insert_replace_cover

  File "calibre_plugins.modify_epub.covers", line 59, in insert_or_replace_cover

  File "calibre_plugins.modify_epub.covers", line 141, in _get_and_clean_existing_cover_item

  File "calibre_plugins.modify_epub.container", line 308, in get_toc_navpoint_content

AttributeError: 'NoneType' object has no attribute 'xpath'



ePub not changed after 0.98 seconds


Spoiler:
calibre, version 5.12.0
ERROR: Modify ePub failed: No ePub files were updated

Modify ePubs version (1, 6, 2)
Logfile for book ID 67 (Blood and Whispers / A. C. Haskins)
Job details 67

Modifying: C:\Users\David\AppData\Local\Temp\calibre_am05j6oa \kho9q2ln_modify_epub\67.epub

Updating metadata and cover

Parsing xml file: content.opf

Looking for Adobe xpgt files and links to remove

Looking for pagemaps

Looking for Google Play pagemaps

Looking for Adobe DRM meta tags to remove

Looking for all jackets

Looking for inline javascript blocks to remove

Looking for .js files to remove

Applying smarten punctuation

Smartened punctuation in: index_02.xhtml

Stripping Kobo remnants

Stripped Kobo spans in: index_02.xhtml

Stripped Kobo spans in: index_03.xhtml

Stripped Kobo spans in: index_04.xhtml

Stripped Kobo spans in: index_05.xhtml

Stripped Kobo spans in: index_06.xhtml

Stripped Kobo spans in: index_07.xhtml

Stripped Kobo spans in: index_08.xhtml

Stripped Kobo spans in: index_09.xhtml

Stripped Kobo spans in: index_10.xhtml

Stripped Kobo spans in: index_11.xhtml

Stripped Kobo spans in: index_12.xhtml

Stripped Kobo spans in: index_13.xhtml

Stripped Kobo spans in: index_14.xhtml

Stripped Kobo spans in: index_15.xhtml

Stripped Kobo spans in: index_16.xhtml

Stripped Kobo spans in: index_17.xhtml

Stripped Kobo spans in: index_18.xhtml

Stripped Kobo spans in: index_19.xhtml

Stripped Kobo spans in: index_20.xhtml

Stripped Kobo spans in: index_21.xhtml

Stripped Kobo spans in: index_22.xhtml

Stripped Kobo spans in: index_23.xhtml

Stripped Kobo spans in: index_24.xhtml

Stripped Kobo spans in: index_25.xhtml

Stripped Kobo spans in: index_26.xhtml

Stripped Kobo spans in: index_27.xhtml

Stripped Kobo spans in: index_28.xhtml

Stripped Kobo spans in: index_29.xhtml

Stripped Kobo spans in: index_30.xhtml

Stripped Kobo spans in: index_31.xhtml

Stripped Kobo spans in: index_32.xhtml

Stripped Kobo spans in: index_33.xhtml

Stripped Kobo spans in: index_34.xhtml

Stripped Kobo spans in: index_35.xhtml

Stripped Kobo spans in: index_36.xhtml

Stripped Kobo spans in: index_37.xhtml

Stripped Kobo spans in: index_38.xhtml

Stripped Kobo spans in: index_39.xhtml

Looking for files to remove: ['iTunesMetadata.plist', 'iTunesArtwork']

Looking for files to remove: ['META-INF/calibre_bookmarks.txt']

Looking for files to remove: ['.DS_Store', 'thumbs.db']

Looking for unused images

Stripping spans

Insert or replace cover

...Looking for guide cover reference

...Looking for meta cover

Found meta tag with cover id: cover

Meta item removed: cover

...Looking for other.ms-* guide references to clean out

...Working with possible existing cover: cover.jpeg

...Looking for cover html page since identified cover is an image

Found this cover page: titlepage.xhtml

Switching to use this for cover page: titlepage.xhtml

...Looking for TOC navpoint for this cover

Blood and Whispers - ERROR: Traceback (most recent call last):

File "calibre_plugins.modify_epub.modify", line 78, in process_book

File "calibre_plugins.modify_epub.modify", line 204, in _process_book

File "calibre_plugins.modify_epub.modify", line 897, in _insert_replace_cover

File "calibre_plugins.modify_epub.covers", line 59, in insert_or_replace_cover

File "calibre_plugins.modify_epub.covers", line 141, in _get_and_clean_existing_cover_item

File "calibre_plugins.modify_epub.container", line 308, in get_toc_navpoint_content

AttributeError: 'NoneType' object has no attribute 'xpath'



ePub not changed after 1.31 seconds


DNSB is offline   Reply With Quote
Old 03-02-2021, 05:53 PM   #1560
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DNSB View Post
I just ran into two epubs which give the same error as in my message on 2020-Dec-18.
Does this version fix it? TBH it looks like it never would have worked but I am highly suspicious of that given the time passed. It seems to fail because an image that "looks like a cover" wasn't originally identified as one.
Attached Files
File Type: zip Modify ePub_1_6_3.zip (78.0 KB, 217 views)
chaley is offline   Reply With Quote
Reply

Tags
modify epub


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 1251 07-07-2025 09:13 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Manage Series kiwidude Plugins 167 07-28-2024 03:07 PM
Modify ePub plugin dev thread kiwidude Development 346 09-02-2013 05:14 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 08:18 AM.


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