![]() |
#16 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,856
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I get why the different image sizes on screen based on the different screen resolutions. But what I don't get is why the images are not centered on the Aura when they are on the 650.
If this is a kepub vs ePub. Then get rid of kepup as it doesn't look as good. |
![]() |
![]() |
![]() |
#17 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
Thanks. Yes that is much better. I think I understand: I need to use 100% for my svg width and height to get the viewBox to fill the screen rather than using an absolute size; the viewBox and image dimensions need to match the real image file in order to preserve its aspect ratio. The image dimensions need to match the viewBox dimensions to get the image to fill the viewBox, and hence fill the screen.
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
Quote:
Code:
<div> <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 660 880" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"> <image height="880" width="660" xlink:href="../Images/cover.jpg"></image> </svg> </div> |
|
![]() |
![]() |
![]() |
#19 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
Quote:
Quote:
![]() now I get it, thanks! |
||
![]() |
![]() |
![]() |
#20 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,661
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Regards, David |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,661
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Sorry but I couldn't resist that slight misquote of Professor Higgins. Regards, David |
|
![]() |
![]() |
![]() |
#22 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,856
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
<p class="image"><img alt="" src="2.jpg"/></p> Code:
p { margin-top: 0; margin-bottom: 0; text-indent: 1.2em } .image { display: block; text-align: center; text-indent: 0 } |
|
![]() |
![]() |
![]() |
#23 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
The html code looks like: Code:
<p class="calibre5"><img alt="chap08" src="images/chapter08.jpg" class="calibre2"/></p> Code:
.calibre2 { height: auto; width: auto } .calibre5 { display: block; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-align: center } In addition, I removed the "calibre2" class and re-tested on the Aura -- still centered correctly. |
|
![]() |
![]() |
![]() |
#24 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,661
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
.image { display: block; margin-left: auto; margin-right: auto; } Also note the using text-align with graphics is not a recommended technique and should be avoided even though it works at least 95% of the time. Regards, David |
|
![]() |
![]() |
![]() |
#25 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34
Karma: 402694
Join Date: May 2013
Location: London, UK
Device: Kobo Aura HD, Kobo Touch
|
Quote:
![]() Thanks to the info in this thread I have been able to get the maps on my fantasy books to fill up the Aura's screen. But the images have all been off-centre. How do I make images bigger and centred at the same time? I am a novice and have only just worked out how to use sigil, most of this thread is going over my head, so please be gentle. ![]() |
|
![]() |
![]() |
![]() |
#26 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34
Karma: 402694
Join Date: May 2013
Location: London, UK
Device: Kobo Aura HD, Kobo Touch
|
Ahh!! I discovered I hadn't entered the correct values for height and width in all the places needed. My images/maps now fill the page nicely and are centred. Thanks to everyone for the helpful information in this thread.
![]() |
![]() |
![]() |
![]() |
#27 | |
A curiosus lector!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
|
Posted by JSWolf
Quote:
|
|
![]() |
![]() |
![]() |
#28 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Only if the image is in that directory in the epub. It doesn't have to be, and it is common for no subdirectories to be used. And if I see an "Images" and a "Text" subdirectory, I assume someone has used Sigil to edit the epub.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glo Graphics, pictures and tables in Epub | Elfuente | Kobo Reader | 1 | 12-03-2012 06:40 PM |
Pictures from PDF to EPub or LRF | eugentango | Recipes | 6 | 06-12-2012 11:10 PM |
zoom in pictures in epub | vice-versa | Kobo Reader | 10 | 03-21-2012 03:28 PM |
why downloaded epub have no thumbnail pictures? | FinancialWar | Sony Reader | 9 | 12-14-2011 06:56 PM |
ePub to MOBI with Pictures | Bull06 | Calibre | 12 | 07-09-2010 11:00 AM |