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-24-2011, 01:17 PM   #1
kiwidude
calibre/Sigil 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,228
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
[GUI Plugin] Resize Cover

This plugin allows users to resize the calibre cover image displayed for books in Calibre's book details and cover browser to one of a configurable choice of sizes.

The plugin comes predefined with a 450x680 setting, which some may find useful for changing Overdrive style 510x680 covers from a 3:4 to a more conventional 2:3 aspect ratio. However you can configure any size combinations you prefer in the plugin preferences.

Main Features of v1.0.2:
  • Define one or more width/height menu combinations
  • Specify one to be your default to apply when the toolbar button is clicked
  • Customise with optional keyboard shortcuts

Special Notes:
  • Requires Calibre v0.8.18 or later.

Installation Steps:
  1. Download the attached zip file and install the plugin/add to context menu or toolbar/restart Calibre as described in the Introduction to plugins thread.

Paypal Donations:
  • If you find this or any of my other plugins useful please feel free to show your appreciation. I have spent many hundreds of unpaid hours in their development and support so any encouragement for me to continue is appreciated!

Version History:
Spoiler:

Version 1.0.2 - 28 Jul 2014
Support for upcoming calibre 2.0

Version 1.0.1 - 30 Aug 2013
Updated to ensure refreshes main grid for new cover view feature in Calibre.

Version 1.0 - 24 Sep 2011
Initial release of Resize Cover plugin
Attached Thumbnails
Click image for larger version

Name:	Screenshot_1_Toolbar.png
Views:	662
Size:	7.6 KB
ID:	76907   Click image for larger version

Name:	Screenshot_2_Configuration.png
Views:	674
Size:	22.7 KB
ID:	76908  
Attached Files
File Type: zip Resize Cover-qt5.zip (31.6 KB, 4694 views)

Last edited by kovidgoyal; 07-28-2014 at 03:36 AM. Reason: v1.0.2 released
kiwidude is offline   Reply With Quote
Old 09-24-2011, 01:59 PM   #2
drMerry
Addict
drMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmos
 
drMerry's Avatar
 
Posts: 293
Karma: 21022
Join Date: Mar 2011
Location: NL
Device: Sony PRS-650
Great idea.

This is what I needed. One thing, it uses the real set height/width.
Is it possible to do it relative?
e.g.
the cover is 200x400
the size is set to 75x100
result: 50x100

EDIT:
I tried to set just one part (so the other wouldn't be touched maybe ).
This is accepted, but when I press ok, I get an error

Spoiler:

calibre, version 0.8.20
ERROR: Unhandled exception: <b>ValueError</b>:invalid literal for int() with base 10: ''

Traceback (most recent call last):
File "calibre_plugins.resize_cover.action", line 113, in show_configuration
File "site-packages\calibre\customize\__init__.py", line 171, in do_user_config
File "calibre_plugins.resize_cover.__init__", line 70, in save_settings
File "calibre_plugins.resize_cover.config", line 192, in save_settings
File "calibre_plugins.resize_cover.config", line 78, in get_data
ValueError: invalid literal for int() with base 10: ''

Last edited by drMerry; 09-24-2011 at 02:01 PM.
drMerry is offline   Reply With Quote
Old 09-24-2011, 02:07 PM   #3
kiwidude
calibre/Sigil 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,228
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
As you have found - no I deliberately avoided allowing users to set aspect ratios - you assign fixed dimensions only.
kiwidude is offline   Reply With Quote
Old 09-24-2011, 02:18 PM   #4
drMerry
Addict
drMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmos
 
drMerry's Avatar
 
Posts: 293
Karma: 21022
Join Date: Mar 2011
Location: NL
Device: Sony PRS-650
Well, I'm happy with it, Just have to calculate the best setting to at last be able to shrink my 2000+ covers I had tagged to be too big

Thanks
drMerry is offline   Reply With Quote
Old 09-24-2011, 02:22 PM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,713
Karma: 18475602
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
If you have your cover XML in your ePub setup correctly, it won't matter the size of the cover image as it will then resize to fit by shrinking or enlarging as needed. What I do is if the cover is larger then 1024 lines, I reduce it to 1024. That fits nicely in all cases I've found. If the cover image is smaller, I just leave it be.

If you do find your cover image to be 510x680, it's aspect ratio is off and you'll need to find another cover image that's aspect ratio correct..
JSWolf is offline   Reply With Quote
Old 09-24-2011, 02:34 PM   #6
drMerry
Addict
drMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmosdrMerry has become one with the cosmos
 
drMerry's Avatar
 
Posts: 293
Karma: 21022
Join Date: Mar 2011
Location: NL
Device: Sony PRS-650
Quote:
Originally Posted by JSWolf View Post
If you have your cover XML in your ePub setup correctly, it won't matter the size of the cover image as it will then resize to fit by shrinking or enlarging as needed. What I do is if the cover is larger then 1024 lines, I reduce it to 1024. That fits nicely in all cases I've found. If the cover image is smaller, I just leave it be.

If you do find your cover image to be 510x680, it's aspect ratio is off and you'll need to find another cover image that's aspect ratio correct..
Well, the nice feature in this is indeed that you're able to correct the aspect ratio.
So I'll just take a look at the ratio's of my covers and change them accordingly.

I've been looking for this option for a long time myself. The case is, I have a lot of big covers. I only need a small one for quick identification.
While a lot of covers are downloaded, I can't tell calibre to get the cover from the file. (which would result in a correct size). So I needed to manually correct the files one by one or use an external tool to do so.

This plugin causes me a lot less trouble doing so.
Great work kiwidude!!!
drMerry is offline   Reply With Quote
Old 09-24-2011, 02:54 PM   #7
kiwidude
calibre/Sigil 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,228
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
I find that Calibre gets very sluggish moving between rows if your cover images are too big (certainly with the book details panel visible). It is another reason for resizing them down.

I disagree about "needing to find another image" with the Overdrive size of 510x680. I find that those covers just need resizing in their aspect ratio, so that they no longer look stretched (certainly for the covers I have seen it appears they were just stretched into that 3:4 ratio, not that they were especially cropped into that size).

Personally I don't actually care very much about the image inside the book, which is not what this plugin is trying to address in any way. As a Kindle user you don't get to see it by default anyway, and even if I did see it who gives a crap about something you are just going to click past. OTOH I do spend many hours browsing my books in Calibre, and I know that one day we will have a "proper" cover browsing option which will look a dogs breakfast to the OCD types like me who get upset about things being all different sized shapes on the screen.
kiwidude is offline   Reply With Quote
Old 09-24-2011, 08:46 PM   #8
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,863
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Thanks for this plugin, I'll give it a try.

Quote:
Originally Posted by kiwidude View Post
OTOH I do spend many hours browsing my books in Calibre, and I know that one day we will have a "proper" cover browsing option which will look a dogs breakfast to the OCD types like me who get upset about things being all different sized shapes on the screen.
Many moons ago I decided to just resize my books to 600x800 because I recalled Kovid saying something about the cover browser using this size. This size is approximately what it would be resized to for my reader at the time. Additionally I use Dropbox and have only so much space so this was my compromise. Of course doing this without regard for the aspect ratio might cause vertigo in some users on this forum.

Quote:
Release: 0.7.3 [18 Jun, 2010]

Bug Fixes
  • Cover cache: Resize covers larger than 600x800 in the cover cache to reduce memory consumption in the GUI
DoctorOhh is online now   Reply With Quote
Old 09-24-2011, 11:57 PM   #9
Aleyst
Zealot
Aleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with others
 
Posts: 107
Karma: 2800
Join Date: Jul 2010
Location: Australia
Device: iPad2, Kindle 4 NT
Oooh, this sounds interesting!
I shall definately be giving it a go.
Aleyst is offline   Reply With Quote
Old 09-26-2011, 05:21 AM   #10
schuster
Zealot
schuster doesn't litterschuster doesn't litter
 
Posts: 116
Karma: 100
Join Date: Jan 2011
Location: Germany / NRW /K÷ln
Device: prs-650 / prs-350 /kindle 3
hi kiwidude,
great tool.
but...

it makes a new entrie and i can add the dimensions but i can not activate this dimensions.

workaround for me at this stage is to edit the json file directly.

if it would possible to make more size's and change between them it will be fantastic.

thanx for all your plug-ins (quality check is the greatest of all)

olaf
schuster is offline   Reply With Quote
Old 09-26-2011, 05:38 AM   #11
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,863
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by schuster View Post
it makes a new entrie and i can add the dimensions but i can not activate this dimensions.

workaround for me at this stage is to edit the json file directly.

if it would possible to make more size's and change between them it will be fantastic.
What OS are you using? This plugin works great for me on Windows XP and Windows 7. I am able to customize the plugin from the menu and add and use new sizes.
DoctorOhh is online now   Reply With Quote
Old 09-26-2011, 06:06 AM   #12
Aleyst
Zealot
Aleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with othersAleyst plays well with others
 
Posts: 107
Karma: 2800
Join Date: Jul 2010
Location: Australia
Device: iPad2, Kindle 4 NT
Works great for me on Windows 7 also!
Aleyst is offline   Reply With Quote
Old 09-26-2011, 11:35 PM   #13
schuster
Zealot
schuster doesn't litterschuster doesn't litter
 
Posts: 116
Karma: 100
Join Date: Jan 2011
Location: Germany / NRW /K÷ln
Device: prs-650 / prs-350 /kindle 3
@dwanthny
win7 also.
make fresh install (calibre), remove, reinstall (the plug-in) but no chance, only way is to edit json-file.
don't know why.
but it is doing the job this way.
i have only one dimension of interest, so it is o.k.
schuster is offline   Reply With Quote
Old 09-27-2011, 12:34 AM   #14
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,863
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by schuster View Post
win7 also.
When you customize the plugin are you clicking the green cross (see attached) to add a new size?
Attached Thumbnails
Click image for larger version

Name:	resizecover.jpg
Views:	265
Size:	50.3 KB
ID:	77016  
DoctorOhh is online now   Reply With Quote
Old 09-27-2011, 12:49 AM   #15
schuster
Zealot
schuster doesn't litterschuster doesn't litter
 
Posts: 116
Karma: 100
Join Date: Jan 2011
Location: Germany / NRW /K÷ln
Device: prs-650 / prs-350 /kindle 3
yes i do,
but the changes are not saved to json-file, and it is not possible to select it in the customize-screen.
but no problem, edit json work's for me.

edit: is it possible for you to change the name of the resolution-entry or set the hook on the desired entry?
schuster 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] Open With kiwidude Plugins 245 10-29-2014 09:06 PM
[GUI Plugin] APNX Generator user_none Plugins 85 10-12-2014 12:54 AM
[GUI Plugin] Generate Cover kiwidude Plugins 502 10-10-2014 06:47 AM
[GUI Plugin] Goodreads Sync kiwidude Plugins 673 09-16-2014 06:38 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 03:57 AM.


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