![]() |
#1 | |
Groupie
![]() Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
|
Calibre reader CSS for background image help
A friend asked me to set up their Calibre reader the same as I have mine with a background image, I use it on 3 different screens and it works OK but on my friends new laptop the background image wont fill the screen. I've tried all sorts of CSS to try and force it but it wont go any bigger, the CSS I'm using is:
Quote:
|
|
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() ![]() Put a copy of the desired resource into the Resources folder within the Calibre Configuration Folder. 1) Calibre will check and USE those (overrides the current ones) before using the current ones from the Calibre Program folder 2)Items within this folder do not get replaced with new files during a program UPDATE. |
|
![]() |
![]() |
![]() |
#4 |
Groupie
![]() Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
|
So Ducks, your saying it would be better in "C:/Program Files/Calibre2/resources/" rather than "C:/Program Files/Calibre2/resources/images/" ?
BR, I tried that and it just moves the image to the top right hand corner. The image is 1038 X 776 and his screen resolution is 1900 X 1200, the 100% refers to the image size not the screen, to test this I just switched the background image for a ramdom photo with a higher res than 1900 X 1200 and it fills the screen fine with my original CSS. I'd better get the scanner fired up and dig out that old book I used and make a higher res background image for him. |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,507
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
No... you want the CONFIGURATION folder NOT the PROGRAM folder.
Go to Calibre | Preferences | Miscellaneous | Open calibre configuration Directory On Windows this is probably the same location as %appdata%\calibre |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
What PeterT said
Images would be where you would place an a: Alternate Trashcan icon. Calibre will look at resources/images FIRST if the file it wants for the UI, exists there, it uses that one.: else, it uses the Programs/resources/images one. (user)Plugins always use the configuration folder ![]() the configuration folders are the added 'Toppings' |
![]() |
![]() |
![]() |
#7 |
Groupie
![]() Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
|
OK, there is no folder called resources in there so I take it I have to create one?
I've created a 1900 X 1200 background image which works on the high res screen. Is it possible in the CSS to get the image to scale to the reader window even when it's not full screen? At the moment I have it centered so the middle of the book stays in the middle but it looses the edges unless full screen. Also is there a thread where people share their reader background images? Last edited by Vortex; 04-21-2014 at 02:47 PM. |
![]() |
![]() |
![]() |
#8 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
(BTW there is a Calibre FAQ in this folder) Don't know about scale. The few backgrounds I used were (even) so they could tile if needed. ![]() ![]() Be aware that all images must be Public Domain or licensed under the GNU General Public License (we had a 'Covers thread' that some images were questioned.) Have fun |
|
![]() |
![]() |
![]() |
#9 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
On windows put your images in this folder %APPDATA%\calibre\resources\images, if it doesn't exist then create it. BR |
|
![]() |
![]() |
![]() |
#10 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
background-size:100% 100%; Update: Upon closer reading this is exactly what BetterRed said in the post directly above. Last edited by DoctorOhh; 04-21-2014 at 11:23 PM. |
|
![]() |
![]() |
![]() |
#11 | ||
Groupie
![]() Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
|
Quote:
![]() The only calibre folder under APPDATA was in the roaming folder so I had to create the whole folder tree, so now I have: Quote:
|
||
![]() |
![]() |
![]() |
#12 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() If you are then put your images in ..\Calibre Portable\Calibre Settings\resources\images Sorry for the bum steer - but at least you friend got a pretty viewer ![]() BR |
|
![]() |
![]() |
![]() |
#13 |
Groupie
![]() Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
|
I spoke to soon there, it works if I open ebook-viewer.exe but if I open a book from within calibre the background image has no right hand edge and looks like it's stretched way off on that side of the screen. The CSS is identical in both, any idea why it's doing this...?
I'm not using portable now, so your previous advice was sound, BR ![]() |
![]() |
![]() |
![]() |
#14 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Vortex - another shot in the dark, what is the default output device - I know that it's in Preferences->Conversion->Common Options->Page Setup, it may be elsewhere too
Try setting it to Tablet, you may have to do a conversion (epub2epeb maybe) too Problem is - what happens if you send it to a nook or a kobo or something - I've no idea. BR Last edited by BetterRed; 04-24-2014 at 06:51 AM. |
![]() |
![]() |
![]() |
#15 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
body { background-image:url("https://dl.dropbox/.../bigback.jpg"); background-size:100% 100%; background-repeat:no-repeat; background-attachment:fixed; background-position:center } |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Background image body | NosCanto | Sigil | 17 | 04-24-2014 04:15 AM |
Image Size CSS for Sony Reader epub? | srascal | ePub | 6 | 03-25-2013 04:45 PM |
Background image | djrulz | Kindle Formats | 1 | 03-29-2011 04:51 PM |
Image background in CSS not displaying on Kobo | shall1028 | ePub | 2 | 09-05-2010 07:30 AM |
css, non-repeating background image | ckirchho | ePub | 3 | 06-26-2009 04:35 AM |