Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-08-2022, 02:07 PM   #766
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,592
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Test Version

2022-09-08
- Fix for 'Corrupted Config file' on Add Setting.

I thought it was an interaction between Add and Save, but it was just Add.

2022-09-07
- Move where GC puts temporary files during setting Import/Export to plugins/generate_cover instead of resources/images/generate_cover.
- Include file name when warning about image file overwrite.

It would be better if GC used a proper temp file, but the JSONConfig class it uses insists on something relative to the calibre settings dir.

2022-08-30
- Move where GC stores cover images from resources/images/generate_cover to plugins/generate_cover

Attached version uses the new dir and does a one-time copy(not move) of configured images from resources/images/generate_cover to plugins/generate_cover.

Tested with Calibre 2, 5 & 6, but only on Win10. I don't have mac or linux available to test with right now. I did try to use a cross-platform safe method.

UPDATE: Test version removed pending review. May be going in a different direction with the resources/images/generate_cover move.

Last edited by JimmXinu; 09-14-2022 at 01:51 PM.
JimmXinu is online now   Reply With Quote
Old 09-30-2022, 02:27 PM   #767
madame_newbie
Connoisseur
madame_newbie began at the beginning.
 
madame_newbie's Avatar
 
Posts: 56
Karma: 48
Join Date: Mar 2017
Device: Kindle Basic 2014 | Kindle Paperwhite 3
Quote:
Traceback (most recent call last):
File "calibre_plugins.generate_cover.action", line 68, in _generate_cover
File "calibre_plugins.generate_cover.dialogs", line 1397, in __init__
File "calibre_plugins.generate_cover.dialogs", line 1689, in display_preview
File "calibre_plugins.generate_cover.draw", line 343, in generate_cover_for_book
File "calibre_plugins.generate_cover.draw", line 198, in create_cover_page
File "calibre_plugins.generate_cover.draw", line 116, in draw_sized_text
TypeError: QRect(): arguments did not match any overloaded call:
overload 1: too many arguments
overload 2: argument 3 has unexpected type 'float'
overload 3: argument 1 has unexpected type 'int'
overload 4: argument 1 has unexpected type 'int'
overload 5: argument 1 has unexpected type 'int'
Hi, I recently ran into this trouble after updating calibre. I have tried uninstalling and reinstalling but it keeps giving me this whenever I tried to use generate cover.

Never mind I found out it was some cover image error. Sorry to bother.

Last edited by madame_newbie; 09-30-2022 at 02:50 PM.
madame_newbie is offline   Reply With Quote
Advert
Old 10-16-2022, 01:39 PM   #768
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Generate Cover v2.3.0 Released

Release Notes:
https://github.com/kiwidude68/calibr...e_cover-v2.3.0
kiwidude is offline   Reply With Quote
Old 11-07-2022, 01:30 AM   #769
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: 9,553
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
edit: never mind, figured it out

Last edited by ownedbycats; 11-07-2022 at 04:35 AM.
ownedbycats is offline   Reply With Quote
Old 11-07-2022, 03:45 AM   #770
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: 9,553
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I'm re-generating covers for a bunch of my books. For certain individual books, I might need to tweak the font size. (SomeFanficAuthorsHaveLongNamesWithNoSpaces.)

Every time I do this, it prompts me to save the current profile. If I press 'discard,' it reverts before generating the cover. So I have to keep clicking "don't save yet" and then re-open the dialog to revert.

Could perhaps a "use, then discard" button work here?

Last edited by ownedbycats; 11-07-2022 at 04:36 AM.
ownedbycats is offline   Reply With Quote
Advert
Old 11-07-2022, 04:30 PM   #771
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: 9,553
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Another thing: the GC option to populate a column doesn't work when the generate_cover_for_book() method is called in FFF. I'm not sure if this is intended or not.
ownedbycats is offline   Reply With Quote
Old 11-07-2022, 05:21 PM   #772
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by ownedbycats View Post
I'm re-generating covers for a bunch of my books. For certain individual books, I might need to tweak the font size. (SomeFanficAuthorsHaveLongNamesWithNoSpaces.)

Every time I do this, it prompts me to save the current profile. If I press 'discard,' it reverts before generating the cover. So I have to keep clicking "don't save yet" and then re-open the dialog to revert.

Could perhaps a "use, then discard" button work here?
I agree that dialog needs a rethink. It should really have a Cancel option too. But then that is five options which is too many overwhelming the user. Perhaps a checkbox option or two might help or something. Or maybe the main dialog needs more options than just "OK" and "Cancel"...

Currently there is:
- "Save Changes" (generate with new settings, save the changes)
- "Discard Changes" (generate with reverted settings, discarded changes)
- "Don't Save Yet" (generate with new settings, don't save the changes)

I think Discard Changes in it's current form is redundant if I added a Cancel button. As there is already a Revert option on the main dialog.

And maybe "Don't Save Yet" needs to sleep with the fishes in favour of this new option. You either made temporary changes you want to discard, or if you are wanting to keep either this iteration or some subsequent tweak to it then just go ahead and Save the changes.

So including your suggestion I think the options a user needs to have (ignoring how they get represented in the UI for the moment)...
- Generate cover, saving changes
- Generate cover, discard changes afterwards
- Cancel

Thoughts?
kiwidude is offline   Reply With Quote
Old 11-07-2022, 05:38 PM   #773
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: 9,553
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Yes, that sounds good - i also noticed the lack of a 'cancel' option but forgot to mention it.
ownedbycats is offline   Reply With Quote
Old 11-07-2022, 05:39 PM   #774
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by ownedbycats View Post
Another thing: the GC option to populate a column doesn't work when the generate_cover_for_book() method is called in FFF. I'm not sure if this is intended or not.
The updating of the custom column is tied into this plugins dialog code, which is not invoked by FFF calling generate_cover directly.

I would have to shuffle some code around to make it work for both scenarios, can put it on the list.
kiwidude is offline   Reply With Quote
Old 11-07-2022, 05:47 PM   #775
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by ownedbycats View Post
Yes, that sounds good - i also noticed the lack of a 'cancel' option but forgot to mention it.
Yeah in hindsight with a fresh look that dialog was very badly designed. No idea what I was thinking at the time, most likely rushed something in while juggling a bunch of other things rather than taking a step back.

So the only question now becomes what do we call the three buttons?
"Apply & Save" or "Save Changes" or ...
"Apply & Revert" or "Revert After" or ...
"Cancel"
kiwidude is offline   Reply With Quote
Old 11-07-2022, 05:48 PM   #776
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: 9,553
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
"Apply & Save/Revert" reads a little clearer to me.
ownedbycats is offline   Reply With Quote
Old 11-07-2022, 05:50 PM   #777
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: 9,553
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by kiwidude View Post
The updating of the custom column is tied into this plugins dialog code, which is not invoked by FFF calling generate_cover directly.

I would have to shuffle some code around to make it work for both scenarios, can put it on the list.
Good - for now, I just have the action chain I run on newly-downloaded fanfics set to let me manually fill it.
ownedbycats is offline   Reply With Quote
Old 11-07-2022, 07:21 PM   #778
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Any feedback on this dialog in terms of better names for the buttons?

Don't want to irritate the translators by renaming them constantly...

Click image for larger version

Name:	UnsavedChanges.png
Views:	168
Size:	6.6 KB
ID:	197598
kiwidude is offline   Reply With Quote
Old 11-07-2022, 08:17 PM   #779
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: 9,553
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
It's clear what they do. The + seems a bit odd though, I'd expect an ampersand.
ownedbycats is offline   Reply With Quote
Old 11-14-2022, 03:58 PM   #780
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: 9,553
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
also, for future reference: Is it bad practice to edit the images directly in \AppData\calibre\plugins\Generate Cover\?

I did it a few days ago without any problems, though I restarted Calibre afterwards (not sure exactly what point the plugin loads the images in).
ownedbycats is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Goodreads Sync kiwidude Plugins 1770 Today 04:33 AM
[GUI Plugin] Clipboard Search kiwidude Plugins 29 04-02-2024 11:05 PM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 09:39 AM
[GUI Plugin] User Category kiwidude Plugins 123 03-17-2024 12:59 AM
[GUI Plugin] Quick Preferences kiwidude Plugins 62 03-17-2024 12:47 AM


All times are GMT -4. The time now is 03:35 PM.


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