05-07-2019, 05:23 AM | #631 | |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
05-07-2019, 06:08 AM | #632 | |
null operator (he/him)
Posts: 20,567
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
05-07-2019, 10:27 AM | #633 |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
05-07-2019, 05:06 PM | #634 |
null operator (he/him)
Posts: 20,567
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Could be a factor of whether Win10 came via an upgrade from Win7 or a new install, mine is new install. Doesn't explain why DawnB2 can't see it in GC but can see it elsewhere.
BR |
05-07-2019, 06:33 PM | #635 |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Perhaps Calibre keeps a font cache and file permissions are preventing it from being updated? I'm aware of GC not being able to use different font weights but I think this is the first time I've heard of it not seeing completely different fonts.
|
05-09-2019, 10:23 PM | #636 | |
Wizard
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
I have quite a hodge-podge collection of fonts from a wide range of sources. The only "Cooper" fonts on the device I'm using right now are Cooper Black and Cooper Black Italic. These came from Adobe and oddly are listed in Win10's Settings>Personalization>Fonts as being "Cooper Std". I have the Cooper Old Style family somewhere, but it's not installed on this system so I can't check the naming. Of the Cooper fonts on this Win10 system, only the black shows, as "Cooper Std Black", in GC and the italic variant is not listed. |
|
05-10-2019, 12:54 AM | #637 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jan 2013
Device: Kindle Paperwhite
|
The system is brand new & has oem Win 10 Pro. The font is already installed in Windows (that's the first thing I checked).
I was able to fix the problem by adding the front in the edit metadata/generate cover section. Once I added the font family in the calibre generate cover settings the plugin version is now able to see the Cooper fonts ( I have both Cooper Black and Cooper Black Italic). Not sure why the main calibre program saw the font & the built-in generate cover didn't. I'm just glad adding the font to the built-in version also added it to the plugin version. |
06-02-2019, 05:39 PM | #638 | |
Connoisseur
Posts: 52
Karma: 48
Join Date: Mar 2017
Device: Kindle Basic 2014 | Kindle Paperwhite 3
|
Quote:
|
|
06-16-2019, 06:59 AM | #639 |
Member
Posts: 12
Karma: 10
Join Date: Jun 2019
Device: none
|
I ran into a bug while using this. The image can end up not being properly centered if fitting to the available space and using an image border.
To fix it, include: Code:
lwidth, lheight = logo.size # add_border() changes dimensions Code:
if not is_background_image and display_image and available[1] > 40: logo = Image() logo.open(image_path) lwidth, lheight = logo.size available = (available[0] - image_border_width * 2, available[1] - image_border_width * 2) scaled, lwidth, lheight = fit_image(lwidth, lheight, *available) if not scaled and options.get(cfg.KEY_RESIZE_IMAGE_TO_FIT, False): scaled, lwidth, lheight = scaleup_image( lwidth, lheight, *available) if scaled: logo.size = (lwidth, lheight) if image_border_width > 0: logo = add_border(logo, image_border_width, border_color, bgcolor) lwidth, lheight = logo.size # add_border() changes dimensions left = int(max(0, (width - lwidth) / 2.)) top = top + image_mgn + ((available[1] - lheight) / 2.) canvas.compose(logo, int(left), int(top)) A sincere thank you goes out to whoever maintains this plugin nowadays. Last edited by worstje; 06-16-2019 at 07:03 AM. Reason: gotta be more specific |
08-10-2019, 02:45 AM | #640 |
Member
Posts: 22
Karma: 10
Join Date: Jul 2019
Location: rural Alaska
Device: Kindle oasis
|
I was using your plugin for a couple of weeks and then when trying to upload an image from desktop (the velveteen Rabbit, of all things) I got the error message,
ERROR: Unhandled exception: <b>ValueError</b>:left and/or top out of bounds, I don't read or speak python, so I just went on to the next cover, however, now no matter what I do I get this error message. I closed down calibre and then restarted the program, (layman's quick fix) but the error message didn't go away, so then i uninstalled the program and reinstalled it (another layman's quick fix) still got the same error message and it won't let me get past it. I probaby wasn't using the pugin to its full extent, did most of my cover art in photoshop and then uploaded it from desktop. What did I do wrong, and how do I fix it? Miss having your plugin, my daughters medical books have boring covers, enjoy redoing the covers (giggle). |
08-10-2019, 05:16 AM | #641 |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
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 All you should do is lose your (custom) cover settings |
08-16-2019, 12:29 AM | #642 |
Junior Member
Posts: 3
Karma: 10
Join Date: Aug 2019
Device: Kindle PW3
|
Thanks for providing this amazing plug-in! I've been putting my entire library in order and this has made everything so much prettier. I found a bug and also have a feature request, though.
The bug: in the custom text area in the contents tab, if there are multiple newlines (or \n) in a row, text before the first consecutive newlines disappears entirely, and text after the newlines displays starting at the very top of the cover, regardless of where it should have been placed to respect the other things (title, series, etc) around it. If there are more consecutive newlines after that text, text after them will also reset its position to the top and display there. I eventually figured out that this was what was going on, but I was quite confused for a while. The feature request: Would it be possible to configure generate cover to choose both a settings configuration and an image file based on values in columns in calibre (e.g. custom ones like #coversettingsname and #coverfilename)? I have one particular settings template that I've been messing with (changing font sizes, layout, etc) which I would like to be the default for new ebooks, but perhaps with a custom file displayed behind it. Specifying values in columns would allow me to re-generate covers if I make a change to the base template, without having to perform that operation separately for each of the background images I have. I don't want to make a new template for each image because I'm still not sure I'm done messing with the template. (To give you more concrete info about my use case, my background image is a border around the text that gets displayed, and I have different borders for different genres so that I can visually distinguish them immediately). |
10-26-2019, 12:15 PM | #643 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
I don't know what has gone wrong, but all the sudden Calibre can't see the new font's I've installed for this plugin.
I've tried restarting Calibre and they still don't show up. They are available in office or otherwise writing software. |
10-26-2019, 05:33 PM | #644 |
null operator (he/him)
Posts: 20,567
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Old problem, there's a possible solution in post 637.
BR |
10-27-2019, 11:09 AM | #645 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
The font was still visible in Calibre, it just didn't look like it was supposed to.
I ended up uninstalling Calibre, removing the generate cover plugin and the font txt-file and installed everything again. It now looks to be working fine. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Goodreads Sync | kiwidude | Plugins | 1721 | 04-18-2024 10:22 AM |
[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 |