02-09-2013, 02:42 PM | #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. |
02-12-2013, 03:08 AM | #2 | |
Wizard
Posts: 2,297
Karma: 12126329
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 | |
|
02-13-2013, 01:24 PM | #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 01: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 02:28 PM |
epub to epub conversion problem with regex spanning multiple input files | ctop | Conversion | 2 | 02-12-2012 01:56 AM |
[Old Thread] Reading epub on viewer inexplicably changes the time stamp of epub | greenapple | Library Management | 20 | 03-19-2011 10:18 PM |
epub, ePub, EPUB, warum blos ePub? | flowoeB | Lounge | 5 | 11-27-2009 09:37 AM |