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 11-01-2019, 05:05 AM   #646
mjart
Member
mjart began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Jul 2019
Location: rural Alaska
Device: Kindle oasis
with all the Calibre upgrades I've been able to get around not having the plugin. Never did get it to work, but with the features in Metadata i can still correct covers in gimp then put them directly back into Calibre.

Last edited by mjart; 11-01-2019 at 05:08 AM.
mjart is offline   Reply With Quote
Old 12-20-2019, 01:10 PM   #647
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,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Test Version

As you may have heard, Calibre on Python3 betas are now available.

Which means plugins need to start being transitioned to Python3 also.

Attached is a (hopefully) Python3 compatible update to this plugin.

2019-12-20

- Changes for Python3.

Please let me know if this version works for you or not, especially on the Py3 beta.

Minimum Calibre version increased to v2.85.1 due to testing failing on v1.48.

Last edited by BetterRed; 01-15-2020 at 03:30 PM. Reason: beta zip moved to first post
JimmXinu is offline   Reply With Quote
Advert
Old 01-05-2020, 02:24 AM   #648
galaxyhub
Member
galaxyhub began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Jul 2019
Device: Kindle Paperwhite, Galaxy Tab S2 8.0
problem with drop down list size

running calibre latest version. and new python version of plugin.
Having a problem seeing font names in the drop down list.
Using windows10 on a 4k monitor at 125% scaling.

Click image for larger version

Name:	2020-01-05_07h20_29.png
Views:	251
Size:	163.7 KB
ID:	176164

Moderator Notice
Please read Guideline #9 ==>> https://www.mobileread.com/forums/fa...ing_guidelines

In advanced mode, click the paper clip icon to get into Manage Attachments, once image is uploaded click it again to post inline

BR

Last edited by BetterRed; 01-05-2020 at 02:33 AM.
galaxyhub is offline   Reply With Quote
Old 01-05-2020, 03:58 AM   #649
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: 29,812
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
did you try other settings of Preferences: Behavior: Adjust for High resolution screens ?
theducks is offline   Reply With Quote
Old 01-05-2020, 04:12 AM   #650
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
did you try other settings of Preferences: Behavior: Adjust for High resolution screens ?
or making the window wider, viz:

Click image for larger version

Name:	Annotation 2020-01-05 201009.jpg
Views:	247
Size:	181.0 KB
ID:	176166

BR
BetterRed is online now   Reply With Quote
Advert
Old 05-07-2020, 12:17 AM   #651
LuceC
Junior Member
LuceC began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2010
Device: iPad Air
[QUOTE=theducks;3877213]as a test (calibre not running)

RENAME (this is in the Calibre config folder)
C:\Users\<yourID>\AppData\Roaming\calibre\plugins\Generate Cover.json

Generate Coverzzz.json <just the JSON file

****
I am getting the same error as mjart message#640. Except I'm on a MAC. I've been using generate cover plugin for years. Now, I'm getting the error "ValueError: left and/or top out of bounds"

MAC Mojave 10.14.6

Thank you
LuceC is offline   Reply With Quote
Old 05-07-2020, 10:35 AM   #652
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,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by LuceC View Post
Quote:
Originally Posted by theducks View Post
as a test (calibre not running)

RENAME (this is in the Calibre config folder)
C:\Users\<yourID>\AppData\Roaming\calibre\plugins\Generate Cover.json

Generate Coverzzz.json <just the JSON file
I am getting the same error as mjart message#640. Except I'm on a MAC. I've been using generate cover plugin for years. Now, I'm getting the error "ValueError: left and/or top out of bounds"

MAC Mojave 10.14.6

Thank you
Is that before or after following the instructions you quoted?

Please run Calibre in debug mode (under Calibre's preferences dropdown), try again and post the debug log containing the error.

That will help tell me where the error occurs.
JimmXinu is offline   Reply With Quote
Old 05-07-2020, 03:12 PM   #653
LuceC
Junior Member
LuceC began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2010
Device: iPad Air
Here is the log. Thank you for the help.

Spoiler:
calibre Debug log
calibre 4.15 embedded-python: True is64bit: True
Darwin-18.7.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '18.7.0', 'Darwin Kernel Version 18.7.0: Sat Oct 12 00:02:19 PDT 2019; root:xnu-4903.278.12~1/RELEASE_X86_64')
Python 2.7.16
OSX: ('10.14.6', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 31, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 31, 0) && KFX metadata reader (from KFX Input) (1, 31, 0) && KFX Input (1, 31, 0) && Obok DeDRM (6, 5, 4) && Count Pages (1, 9, 0) && Generate Cover (1, 5, 22)
calibre 4.15 embedded-python: True is64bit: True
Darwin-18.7.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '18.7.0', 'Darwin Kernel Version 18.7.0: Sat Oct 12 00:02:19 PDT 2019; root:xnu-4903.278.12~1/RELEASE_X86_64')
Python 2.7.16
OSX: ('10.14.6', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 31, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 31, 0) && KFX metadata reader (from KFX Input) (1, 31, 0) && KFX Input (1, 31, 0) && Obok DeDRM (6, 5, 4) && Count Pages (1, 9, 0) && Generate Cover (1, 5, 22)
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 110.50000166 x 110.50000166
Using calibre Qt style: True
[0.00] Starting up...
[0.02] Showing splash screen...
[0.31] splash screen shown
[0.31] Initializing db...
[0.42] db initialized
[0.42] Constructing main UI...
DEBUG: 0.0 obok::utilities.py - loading translations
DEBUG: 0.0 obok::dialogs.py - loading translations
DEBUG: 0.0 obok::config.py - loading translations
DEBUG: 0.0 obok::action_err.py - loading translations
[1.70] main UI initialized...
[1.70] Hiding splash screen
qt.qpa.fonts: Populating font family aliases took 1496 ms. Replace uses of missing font family "Sansserif" with one that exists to avoid this cost.
QImage::scaled: Image is a null image
calibre 4.15 embedded-python: True is64bit: True
Darwin-18.7.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '18.7.0', 'Darwin Kernel Version 18.7.0: Sat Oct 12 00:02:19 PDT 2019; root:xnu-4903.278.12~1/RELEASE_X86_64')
Python 2.7.16
OSX: ('10.14.6', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 31, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 31, 0) && KFX metadata reader (from KFX Input) (1, 31, 0) && KFX Input (1, 31, 0) && Obok DeDRM (6, 5, 4) && Count Pages (1, 9, 0) && Generate Cover (1, 5, 22)
Traceback (most recent call last):
File "calibre_plugins.generate_cover.action", line 66, in _generate_cover
File "calibre_plugins.generate_cover.dialogs", line 1379, in __init__
File "calibre_plugins.generate_cover.dialogs", line 1671, in display_preview
File "calibre_plugins.generate_cover.draw", line 331, in generate_cover_for_book
File "calibre_plugins.generate_cover.draw", line 179, in create_cover_page
File "site-packages/calibre/utils/magick/legacy.py", line 111, in compose
ValueError: left and/or top out of bounds

[10.02] splash screen hidden
[10.02] Started up in 10.02 seconds with 2509 books

Last edited by theducks; 05-07-2020 at 03:18 PM. Reason: spoilered
LuceC is offline   Reply With Quote
Old 05-07-2020, 08:04 PM   #654
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,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by LuceC View Post
Here is the log. Thank you for the help.
Hmmm. That's the part that puts the image in.

The only way I can get that error is if I manually change the image size parameters in the json file to 0.

Attached is a version that explicitly enforces the image size limits when read from the file, not just on the spin box in the dialog (and outputs a little debug data).

Please try it and let me know what happens.

Last edited by JimmXinu; 05-20-2020 at 11:39 AM. Reason: Remove obsolete test version
JimmXinu is offline   Reply With Quote
Old 05-08-2020, 05:49 PM   #655
LuceC
Junior Member
LuceC began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2010
Device: iPad Air
Quote:
Originally Posted by JimmXinu View Post
Attached is a version that explicitly enforces the image size limits when read from the file, not just on the spin box in the dialog (and outputs a little debug data).

Please try it and let me know what happens.
Great. However, I don't know how to add your version to Calibre. I see where I can "Load plugin from file" but that doesn't seem to be it. Or likelihood I'm doing something wrong.

Thank you,
Luce
LuceC is offline   Reply With Quote
Old 05-08-2020, 06:37 PM   #656
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,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by LuceC View Post
Great. However, I don't know how to add your version to Calibre. I see where I can "Load plugin from file" but that doesn't seem to be it. Or likelihood I'm doing something wrong.
Look at this post and look for the section How do I install a plugin manually?
JimmXinu is offline   Reply With Quote
Old 05-08-2020, 07:07 PM   #657
LuceC
Junior Member
LuceC began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2010
Device: iPad Air
Quote:
Originally Posted by JimmXinu View Post
Look at this post and look for the section How do I install a plugin manually?
OK. I was able to download the plugin but now I'm getting a new error. ValueError: Cannot operate on null QImage


Quote:
calibre, version 4.15.0
ERROR: Unhandled exception: <b>ValueError</b>:Cannot operate on null QImage

calibre 4.15 embedded-python: True is64bit: True
Darwin-18.7.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '18.7.0', 'Darwin Kernel Version 18.7.0: Sat Oct 12 00:02:19 PDT 2019; root:xnu-4903.278.12~1/RELEASE_X86_64')
Python 2.7.16
OSX: ('10.14.6', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 31, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 31, 0) && Generate Cover (1, 5, 23) && Count Pages (1, 9, 0) && KFX metadata reader (from KFX Input) (1, 31, 0) && KFX Input (1, 31, 0) && Obok DeDRM (6, 5, 4)
Traceback (most recent call last):
File "calibre_plugins.generate_cover.action", line 66, in _generate_cover
File "calibre_plugins.generate_cover.dialogs", line 1379, in __init__
File "calibre_plugins.generate_cover.dialogs", line 1671, in display_preview
File "calibre_plugins.generate_cover.draw", line 341, in generate_cover_for_book
File "calibre_plugins.generate_cover.draw", line 189, in create_cover_page
File "site-packages/calibre/utils/magick/legacy.py", line 112, in compose
File "site-packages/calibre/utils/img.py", line 339, in overlay_image
ValueError: Cannot operate on null QImage
LuceC is offline   Reply With Quote
Old 05-08-2020, 07:45 PM   #658
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,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by LuceC View Post
OK. I was able to download the plugin but now I'm getting a new error. ValueError: Cannot operate on null QImage
At this point, I'm going to ask again: did you follow theducks's suggestion in this post and reset your GC settings?

Because it looks to me like your settings are corrupted.

If you really want to try and troubleshoot your existing settings, you can attach your Generate Cover.json (it may need to be zipped) and I'll look at it.
JimmXinu is offline   Reply With Quote
Old 05-09-2020, 05:29 AM   #659
LuceC
Junior Member
LuceC began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2010
Device: iPad Air
Quote:
Originally Posted by JimmXinu View Post

Because it looks to me like your settings are corrupted.
OK. I got it to work. I re-installed (again) the Generate Cover plugin you gave me and it worked. I don't know what I did (or didn't do) the first time I tried it. I did lose all my custom covers, but I can easily re-install them.
Thank you for your help!
LuceC is offline   Reply With Quote
Old 05-20-2020, 11:39 AM   #660
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,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Version

Attached is the previously posted test version with debug output removed and version number incremented.

If some kind mod would put it in the OP for release, I'd appreciate it.

Thanks.

Last edited by BetterRed; 05-20-2020 at 06:35 PM. Reason: Remove attachment
JimmXinu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Goodreads Sync kiwidude Plugins 1722 04-25-2024 03:09 PM
[GUI Plugin] Clipboard Search kiwidude Plugins 29 04-02-2024 10:05 PM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 08:39 AM
[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 07:28 AM.


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