![]() |
#1 |
Library Breeder (She/Her)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 1900479
Join Date: Apr 2015
Location: Fullerton, California
Device: Kobo Aura HD (1) PW3 (4) PW3 2019 new edition (1)
|
size in kb column
how do I make a size column that shows the kb? - I have multiple copies of the same book that is only differentiated by the size and I want to know in kb instead of mb because the files on my computer need to match the files in Calibre so I know which to keep and which to chuck.
Thanks! |
![]() |
![]() |
![]() |
#2 |
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
This is the template I use in the custom column for Kbytes:
program: a=divide(booksize(), 1024); a=re(a,'(\d+)\.\d+','\1'); a=add(a,1); format_number(a,'n'); And so I have exactly the same value that the file shows in Windows. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,866
Karma: 7036359
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Starting in calibre 4.23 you can write: Code:
program: format_number(add(floor(divide(booksize(), 1024)), 1), 'n') Starting in the next calibre release (5.13) you can write: Code:
program: format_number(floor(booksize()/1024)+1,'n') |
|
![]() |
![]() |
![]() |
#4 |
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
|
![]() |
![]() |
![]() |
#5 | |
Library Breeder (She/Her)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 1900479
Join Date: Apr 2015
Location: Fullerton, California
Device: Kobo Aura HD (1) PW3 (4) PW3 2019 new edition (1)
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,087
Karma: 62580135
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Column for size pictures | Polleke1945 | Library Management | 2 | 11-15-2017 05:41 AM |
Size column shows exactly what? | unboggling | Library Management | 4 | 11-21-2013 02:44 PM |
Column for cover size? | Black Scholes | Library Management | 2 | 11-08-2013 03:07 AM |
size column | iomari | Calibre | 6 | 09-30-2011 07:00 AM |
Refresh size column | Perkin | Calibre | 5 | 09-10-2010 11:31 AM |