Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 01-15-2021, 01:00 PM   #1
krommenaas
Junior Member
krommenaas began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2021
Device: All of them (author)
keeping small images small in an epub

I'm converting from Word to epub. Below each chapter title I have a small image (a big icon really). In Coolreader on Android, this image gets blown up to take the full width. I'm pretty sure though that I've seen small images in epubs on this reader before, but can't find an example unfortunately. Any advise on what CSS to use to keep the image small? Just its real size, i.e. no scaling either way, would be fine.

I've been experimenting with width, max-width and object-fit: contain, all to no avail.
krommenaas is offline   Reply With Quote
Old 01-15-2021, 01:03 PM   #2
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 421
Karma: 288184
Join Date: May 2015
Device: Laptop
Try the following in the CSS file for the image class (if your original image files are small):

height: auto;
width: auto;

If your original image files are larger than you want displayed in the book, use percentages, like the following:

height: 50%;
width: 50%;

Use whatever percentage results in the size you want.

This image class is the class that you've included in the img src line.
deback is offline   Reply With Quote
Old 01-17-2021, 05:09 AM   #3
krommenaas
Junior Member
krommenaas began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2021
Device: All of them (author)
Thanks for the idea. Didn't work unfortunately. I'm going to assume it's just a problem with Coolreader.
krommenaas is offline   Reply With Quote
Old 01-17-2021, 05:17 AM   #4
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 421
Karma: 288184
Join Date: May 2015
Device: Laptop
Find the setting in Coolreader to use the settings in the ePub file.
deback 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
Aura HD Small Cover Images KazuyaDarklight Kobo Reader 6 09-11-2018 10:53 PM
kindle azw to PocektBook epub images too small richo Conversion 28 05-28-2017 09:48 PM
Aura H2O ePub Images Small elstoc Kobo Developer's Corner 13 09-19-2015 12:02 PM
Keeping small caps when converting from sigil to calibre sly_skittle Sigil 8 03-22-2012 06:59 PM
RTF to epub convert images turn out small sassanik Calibre 1 10-16-2010 01:14 AM


All times are GMT -4. The time now is 08:48 AM.


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