02-20-2013, 10:06 PM | #16 | |
A Hairy Wizard
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Yes, I needed the div, but only to center the image on the screen in ADE/sony.
I was able to remove some default settings (height="100%" width="100%" preserveAspectRatio="xMidYMid meet") to trim it down, but I don't know if there is a device out there that HAS to have them. If you want to change the size, not full screen, you will have to have a height=x% Quote:
Last edited by Turtle91; 02-20-2013 at 10:08 PM. |
|
02-20-2013, 10:11 PM | #17 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
preserveAspectRatio="xMidYMid meet" What does happens when you convert to KF8 and Mobi using Calibre? |
|
Advert | |
|
02-20-2013, 10:29 PM | #18 |
A Hairy Wizard
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I checked and it said that (preserveAspectRatio="xMidYMid meet") was the "default" value so I took it out. But, it doesn't really take up a lot of extra space...it is just one file, so I will put all the defaults back in just to CYA.
When I use Calibre to convert (instead of Kindle Previewer) some different things happen: convert to AZW3 - as expected, Kindle previewer doesn't even allow selection of the devices that aren't kf8. No other differences noted. convert to mobi - it shows one of the two svg pages, but the dimensions are all screwed up. The aspect ratio is correct, but the size is huge. Both svg pages had the default values (height="100%" preserveAspectRatio="xMidYMid meet") defined. |
02-21-2013, 08:43 AM | #19 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What does Kindlegen do to the ePub when you convert?
|
02-21-2013, 09:05 AM | #20 |
A Hairy Wizard
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
That's what I mentioned before. Kindle Previewer uses kindlegen for conversion does it not??
|
Advert | |
|
02-21-2013, 09:14 AM | #21 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
02-21-2013, 09:27 AM | #22 |
A Hairy Wizard
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I'm pretty sure it does - Previewer uses kindlegen for conversion (by drag and drop - cool!), and then shows how it will look in the different devices. The older kindle's and Kindle iOS don't see the SVG pages at all when I use Kindle Previewer - only the PW and Fires see it.
|
02-21-2013, 12:30 PM | #23 |
Sigil developer
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
If you are just trying to get it to look right in Sigil, then it doesn't seem something to worry about. Clearly its a bug in Qt5, that one day will hopefully be fixed. And as the usual caveat goes - what you see in Sigil is not what you will see on all ereaders...
|
02-21-2013, 01:44 PM | #24 |
A Hairy Wizard
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Understood - and I agree. I was trying to figure out how to get the image to work properly even under html5 when we can no longer use the % in the scale attribute...just trying to think ahead. If I can get it figured out now - in a way that works for both...then I don't have to worry about it later...and when others have the same question I can point them to this thread.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Line height insanity! | Kamikuza | Conversion | 6 | 10-24-2012 11:56 PM |
Image height in div | soparch | ePub | 5 | 03-29-2012 01:18 PM |
What image height causes images to fill the screen? | karenbryant | ePub | 7 | 01-04-2012 04:23 AM |
Advice about line-height | Julien Pham | Sigil | 2 | 12-22-2011 09:05 AM |
Max-Height | theducks | Sigil | 6 | 09-02-2010 05:40 PM |