|
|
#1 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Feb 2013
Device: Smartphone - Aldiko
|
How to specify imagesize in epub
Hallo,
I used Abby Finereader to create a epub document. There are some images in it. Aldiko shows them very small, so you can't see anything. Opened with ezpdf-Reader the Images are bigger and readable. I know epubs are zips and I think I have to edit main.css to get the Images bigger. But I don't know what to do, it is my first edit of an epub. Please tell me what to do. Thank you very much for help. |
|
|
|
|
|
#2 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Finereader creates inline HTML for the width/height of the image in this format: Code:
<p><img alt="" src="../Images/NameofImage.png" style="width:###pt;height:###pt;" /></p>
If you wanted the image to stretch to the width of the reader, you will have to insert code such as this: Code:
<div><img alt="" src="../Images/NameofImage.png" width="100%" /></div> Code:
img {
width: 100%;
}
|
|
|
|
|
| Advert | |
|
|
|
|
#3 | |||
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Feb 2013
Device: Smartphone - Aldiko
|
Thank you very much. I've made it.
Quote:
Also that: Quote:
Quote:
So the workaroud for Aldiko that it shows the images in the right size is to add to each <img> tag Code:
style="max-width:100%" Example: <img src="main-7.png" alt="" style="max-width:100%"/> Code:
<img src=(.*?) style=(.*?)/> <img src=\1/> style="width:###pt;height:###pt;" which makes Abby. After that you use Code:
<img src=(.*?)/> <img src=\1 style="max-width:100%"/> Last edited by ImageSize; 02-13-2013 at 02:32 PM. |
|||
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A New Epub Creator: txt to epub, word to epub | oxen | ePub | 120 | 07-22-2019 03:28 PM |
| epub to epub conversion problem with regex spanning multiple input files | ctop | Conversion | 2 | 02-12-2012 02:56 AM |
| [Old Thread] Reading epub on viewer inexplicably changes the time stamp of epub | greenapple | Library Management | 20 | 03-19-2011 11:18 PM |
| epub, ePub, EPUB, warum blos ePub? | flowoeB | Lounge | 5 | 11-27-2009 10:37 AM |