03-04-2011, 08:12 PM | #1 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
[GUI Plugin] Generate Cover
Users will often have books in their collection for which there is no official cover available to download, such as short fiction and articles. Calibre includes the ability to generate a cover for you from the book metadata. However currently the only control over its appearance it offers is a tweak for the font.
This plugin offers an enhanced alternative that allows you to select from your own choice of cover images and a wide range of layout/appearance options. Main Features:
Special Notes:
Sample Cover Settings:
Paypal Donations: Last edited by kiwidude; 03-17-2024 at 12:30 AM. Reason: New version |
03-04-2011, 09:38 PM | #2 |
Member
Posts: 23
Karma: 10
Join Date: Jul 2009
Device: Kindle2
|
Simply great. You're becoming the plugin king!
|
Advert | |
|
03-05-2011, 03:27 AM | #3 |
US Navy, Retired
Posts: 9,878
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Thanks for this plugin.
The only thing I noticed was not being able to see all 3 numbers in the cover width and height dimensions (see attached). This might be due to using increased font sizes but this is the only area of calibre that limits me in this way. |
03-05-2011, 05:41 AM | #4 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.0.1 Released
Oops, thats a pretty ugly screen layout dwanthy! I've pushed up a new version now. I had been through a lot of variations of layout as this was developed and I thought of new customisations, and I'd left some rather crude sizing code in there. The new version should hopefully address your issues.
Let me know how you get on - now I've figured out what to do I'll make sure I don't make the same mistake in my other plugins again. |
03-05-2011, 07:06 AM | #5 |
US Navy, Retired
Posts: 9,878
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
|
Advert | |
|
03-05-2011, 11:47 AM | #6 |
Comparer of the Ephemeris
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Attempting to customize the plugin yields the following error:
Code:
Traceback (most recent call last): File "/Users/griker/Documents/calibredev/calibre/src/calibre/gui2/preferences/plugins.py", line 260, in customize_plugin self.modify_plugin(op='customize') File "/Users/griker/Documents/calibredev/calibre/src/calibre/gui2/preferences/plugins.py", line 319, in modify_plugin if not plugin.is_customizable(): File "/Users/griker/Documents/calibredev/calibre/src/calibre/customize/__init__.py", line 248, in is_customizable self.customization_help() File "<string>", line 59, in customization_help AttributeError: 'GenerateCoverBase' object has no attribute 'customization_help' G |
03-05-2011, 12:09 PM | #7 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.0.2 Released
I've done so many plugins now that have customisation via Preferences I clearly screwed up the situation for a plugin that doesn't and didn't rip out enough code
New version attached to the first post. |
03-05-2011, 12:11 PM | #8 |
Guru
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
Thanks kiwidude.
|
03-05-2011, 12:21 PM | #9 |
Guru
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
A couple of tweaks...
Can you do it so you can select the Font colour And allow the image to be the whole background, I've got some nice leather look covers and would like the whole cover to be that, not just an inset image. |
03-05-2011, 03:54 PM | #10 | |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
There is a bit of a dependency between them, since unless you have a light background you are going to want the text color changed. However I haven't figured out how to change the color since I can't find any code in Calibre related to this in the Magick libraries. I suspect it is something to do with a DrawingWand but it is yet another library I have no knowledge of. I'll ask in the developer forum here if Kovid doesn't spot this post and reply here. |
|
03-05-2011, 04:58 PM | #11 |
creator of calibre
Posts: 44,657
Karma: 24966646
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Changing text color would require additional APIs from ImageMagick to be wrapped in python, IIRC it can't be done with the currently available API.
|
03-05-2011, 05:02 PM | #12 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Thanks Kovid, I suspected as much but nice to get confirmation
|
03-12-2011, 03:22 AM | #13 |
Junior Member
Posts: 8
Karma: 1162
Join Date: Mar 2011
Device: Sony PRS-600
|
First, I want to say brilliant plugin. This and Search the Internet have both become features I can't live without!
I do have one question -- Is it possible to store multiple settings? For example, I've mostly been generating covers in two cases: 1) Books with ... unfortunate covers. Either very small, poor quality, or just dull, and I'd like to have something a bit nicer. 2) Short stories from anthologies. When I have anthologies, I like to have each story as its own entry, as well as the full anthology itself. Ideally, I'd like to use different settings for each kind of cover. Like using Times Roman font, and a blue background for the book covers, and using Tahoma with a green background for the short stories, and being able to switch easily between the two. I know very little about coding so I'm not sure how tricky this would be, though. Keep up the great work! |
03-12-2011, 05:58 AM | #14 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Thanks for the feedback and glad it has become useful to you.
Funnily enough something like what you suggest did occur to me when I wrote it. However I chose not to put it into 1.0 to see if anyone felt a need for it first, a bit like the suggestions from Perkin above. My interim approach was to allow the user to overwrite the default settings, so that gave you one set stored, plus a second temporarily being used. However I think the addition of the ability to save the settings as a named set would be the more flexible approach. So if you like a particular font/image for your science fiction books versus another combination for romance etc you could configure that up and then just choose from a list on the left side of the dialog. I'll add it to the list for v1.1. Kovid has kindly made some additions to the API with 0.7.49 to allow me to set font color so I will be adding Perkin's suggestions as well. |
03-12-2011, 07:44 AM | #15 | |
US Navy, Retired
Posts: 9,878
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Is there the possibility of using a books existing cover as the image, resizing it and using it as the image for a modified book cover? |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Goodreads Sync | kiwidude | Plugins | 1777 | 12-23-2024 07:37 PM |
[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 |