01-15-2021, 12:00 PM | #1 |
Junior Member
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. |
01-15-2021, 12:03 PM | #2 |
Book E d i t o r
Posts: 432
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. |
Advert | |
|
01-17-2021, 04:09 AM | #3 |
Junior Member
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.
|
01-17-2021, 04:17 AM | #4 |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Find the setting in Coolreader to use the settings in the ePub file.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura HD Small Cover Images | KazuyaDarklight | Kobo Reader | 6 | 09-11-2018 09:53 PM |
kindle azw to PocektBook epub images too small | richo | Conversion | 28 | 05-28-2017 08:48 PM |
Aura H2O ePub Images Small | elstoc | Kobo Developer's Corner | 13 | 09-19-2015 11:02 AM |
Keeping small caps when converting from sigil to calibre | sly_skittle | Sigil | 8 | 03-22-2012 05:59 PM |
RTF to epub convert images turn out small | sassanik | Calibre | 1 | 10-16-2010 12:14 AM |