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 02-14-2022, 08:32 PM   #736
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,971
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Generate Cover only updates the cover in Calibre's database. It doesn't change any ebook format.

By default, Calibre's Convert and Send to Device both update the metadata inside the ebook file, including cover, when run. As far as I know, anyway. It's possible that the defaults have changed, or you have changed the settings without realizing it.

Calibre's Polish can be used to update the cover in ebook files in place, vs when they are converted for sent.

FYI, azw3 is a newer and 'better' format than mobi for Kindle. I would recommend using it instead of mobi. I've been using it for years.
JimmXinu is online now   Reply With Quote
Old 02-14-2022, 09:09 PM   #737
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,973
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
If you're lazy like me and want to save a few clicks, you can make an Action Chain to run generate cover + polish book and then apply it to a keyboard shortcut.
ownedbycats is offline   Reply With Quote
Advert
Old 02-23-2022, 09:06 AM   #738
crnirg
Connoisseur
crnirg began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Nov 2010
Location: Niš, Srbija
Device: TCL Nxtpaper 11, Kindle PW 2024
Can I somehow choose, say, a second page instead of the first when choosing a cover?
crnirg is offline   Reply With Quote
Old 02-23-2022, 10:26 AM   #739
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,971
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
I think you may be asking your question in the wrong place.

The Generate Cover plugin doesn't actually do any with the contents of ebooks. It only works on the Cover image in Calibre's library.

Therefore, it has no idea about pages.
JimmXinu is online now   Reply With Quote
Old 02-23-2022, 10:58 AM   #740
crnirg
Connoisseur
crnirg began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Nov 2010
Location: Niš, Srbija
Device: TCL Nxtpaper 11, Kindle PW 2024
#JimmXinu
Thanks for answer .
crnirg is offline   Reply With Quote
Advert
Old 04-25-2022, 11:50 PM   #741
rabidread
Junior Member
rabidread began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2022
Device: kindle paperwhite
Quote:
Originally Posted by Tetchystar View Post
I really like this plugin, but was wondering. Is there a way to have a random image chosen when you generate a cover? For example, if I choose generate cover for multiple books at once, can it randomly select an image?
I was wondering if this has been reconsidered. I've added 200 images to the list of possible covers, but it seems I need to choose them one by one. I would love if they could just be chosen at random as material needs covers. This is especially true for using it in combination with FanFicFare.
rabidread is offline   Reply With Quote
Old 04-26-2022, 11:54 AM   #742
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,971
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
If someone wants to add such a feature, it sounds like some users would like it.

I'm not very interested in adding it myself, mostly because of the GUI issues. How would it be presented to user?
JimmXinu is online now   Reply With Quote
Old 04-26-2022, 01:15 PM   #743
rabidread
Junior Member
rabidread began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2022
Device: kindle paperwhite
I think the most straightforward would be in the Select Image section to have a third options such as

{Current Cover}
{Default}
{Random Image}
Picture A.jpg
Picture B.jpg
Picture C.jpg
...
rabidread is offline   Reply With Quote
Old 04-26-2022, 01:25 PM   #744
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,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by rabidread View Post
I think the most straightforward would be in the Select Image section to have a third options such as

{Current Cover}
{Default}
{Random Image}
Picture A.jpg
Picture B.jpg
Picture C.jpg
...

Load an array with the available file names; draw a random Integer (range check against # available) ; get the array[index]

Now you just need to know Python
theducks is offline   Reply With Quote
Old 04-26-2022, 02:29 PM   #745
rabidread
Junior Member
rabidread began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2022
Device: kindle paperwhite
Quote:
Originally Posted by theducks View Post
Now you just need to know Python
Yeh, that's the caveat. I could do it in R in a couple minutes, but I haven't learned/tried enough in Python to do much other than very slight alterations of others' scripts.
rabidread is offline   Reply With Quote
Old 04-26-2022, 02:37 PM   #746
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,971
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Yes, randomly selecting an image from a list is easy.

The issue is defining the image list. 5 minutes after implementing a simple 'random from the existing image list' feature, some one is going to want to have different image lists for different Saved Settings.
JimmXinu is online now   Reply With Quote
Old 07-12-2022, 04:33 PM   #747
nan1923
Enthusiast
nan1923 doesn't litternan1923 doesn't litter
 
Posts: 25
Karma: 140
Join Date: Jul 2022
Device: none
Hi, since my upgrade to Calibre 6 I'm getting an error message when trying to export a cover or import one. Is that a compatibility error with the new calibre version or is somenthing else wrong?


Export Error:

calibre, version 6.0.0
ERROR: Unhandled exception: <b>AttributeError</b>:type object 'QFileDialog' has no attribute 'AnyFile'

calibre 6.0 embedded-python: True
Windows-10-10.0.19044 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19044')
Python 3.10.1
Windows: ('10', '10.0.19044', '', 'Multiprocessor Free')
Interface language: en_GB
Successfully initialized third party plugins: DeDRM (7, 2, 1) && Count Pages (1, 11, 2) && EpubMerge (2, 13, 0) && EpubSplit (3, 3, 0) && FanFicFare (4, 14, 0) && Favourites Menu (1, 1, 0) && Generate Cover (2, 1, 0) && Job Spy (1, 0, 191) && Quality Check (1, 12, 0) && Reading List (1, 11, 0)
Traceback (most recent call last):
File "calibre_plugins.generate_cover.dialogs", line 672, in export_setting
File "calibre_plugins.generate_cover.dialogs", line 726, in pick_archive_name_to_export
AttributeError: type object 'QFileDialog' has no attribute 'AnyFile'

Import Error:

calibre, version 6.0.0
ERROR: Unhandled exception: <b>TypeError</b>:join() argument must be str, bytes, or os.PathLike object, not 'NoneType'

calibre 6.0 embedded-python: True
Windows-10-10.0.19044 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19044')
Python 3.10.1
Windows: ('10', '10.0.19044', '', 'Multiprocessor Free')
Interface language: en_GB
Successfully initialized third party plugins: DeDRM (7, 2, 1) && Count Pages (1, 11, 2) && EpubMerge (2, 13, 0) && EpubSplit (3, 3, 0) && FanFicFare (4, 14, 0) && Favourites Menu (1, 1, 0) && Generate Cover (2, 1, 0) && Job Spy (1, 0, 191) && Quality Check (1, 12, 0) && Reading List (1, 11, 0)
Traceback (most recent call last):
File "calibre_plugins.generate_cover.dialogs", line 640, in import_setting
File "calibre_plugins.generate_cover.dialogs", line 851, in confirm_add_image
File "ntpath.py", line 117, in join
File "genericpath.py", line 152, in _check_arg_types
TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'
nan1923 is offline   Reply With Quote
Old 07-12-2022, 05:33 PM   #748
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,971
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version

2022-07-12
- mode=AnyFile in qt5 & qt6

I could duplicate the export error and fixed it, but not the import error.

nan1923, can you post the zip file for the GC setting you were importing?

Last edited by JimmXinu; 07-14-2022 at 03:59 PM. Reason: Remove obsolete test version
JimmXinu is online now   Reply With Quote
Old 07-12-2022, 05:51 PM   #749
nan1923
Enthusiast
nan1923 doesn't litternan1923 doesn't litter
 
Posts: 25
Karma: 140
Join Date: Jul 2022
Device: none
Import/Export Error

Hi, thanks for the fast response!
The export is also fixed in my calibre, thanks! The import error for some reason doesn't appear anymore, maybe your update fixed it by accident or the reboot of my pc fixed it. No idea what it was, but it works now!
Thanks!

Different plugin, but also one written by you: In the FanFicfare plugin, when I try to search the personal.ini or the default.ini I also get an error (calibre 6 seems to cause quite a few problems for plugins):

calibre, version 6.0.0
ERROR: Unhandled exception: <b>AttributeError</b>:'QTextCursor' object has no attribute 'Right'

calibre 6.0 embedded-python: True
Windows-10-10.0.19044 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19044')
Python 3.10.1
Windows: ('10', '10.0.19044', '', 'Multiprocessor Free')
Interface language: en_GB
Successfully initialized third party plugins: DeDRM (7, 2, 1) && Count Pages (1, 11, 2) && EpubMerge (2, 13, 0) && EpubSplit (3, 3, 0) && FanFicFare (4, 14, 0) && Favourites Menu (1, 1, 0) && Generate Cover (2, 1, 1) && Job Spy (1, 0, 191) && Quality Check (1, 12, 0) && Reading List (1, 12, 0)
Traceback (most recent call last):
File "calibre_plugins.fanficfare_plugin.dialogs", line 1453, in find
File "calibre_plugins.fanficfare_plugin.dialogs", line 1469, in moveCursor
AttributeError: 'QTextCursor' object has no attribute 'Right'
nan1923 is offline   Reply With Quote
Old 07-12-2022, 08:40 PM   #750
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,971
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Ideally, you should post to the FanFicFare thread, not tack onto an unrelated post in an unrelated thread. I link my plugin threads in my signature.

I've posted a new FFF test version.
JimmXinu is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Goodreads Sync kiwidude Plugins 1781 02-12-2025 07:09 PM
[GUI Plugin] Clipboard Search kiwidude Plugins 29 04-02-2024 10:05 PM
[GUI Plugin] User Category kiwidude Plugins 123 03-16-2024 11:59 PM
[GUI Plugin] Quick Preferences kiwidude Plugins 62 03-16-2024 11:47 PM


All times are GMT -4. The time now is 10:35 AM.


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