![]() |
#31 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,617
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
If this is all about how converted epubs look on Kindle devices and/or Kindle reading apps, this may not be the best place to ask. |
|
![]() |
![]() |
![]() |
#32 |
Oracle Pig Keeper
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 5024
Join Date: Jun 2023
Device: Kindle Fire HD, Samsung Tab
|
I originally tried checking my work on the Kindle by using Amazon's Send To My Kindle page. During the early stages of my troubleshooting, I learned about how that import process can change the document in question. That's why I started looking at the book on my Samsung Tab S3. I use Google Play Books to upload the epub from my PC and then view it on the tablet. [No USB cables, yay!] Google may be massaging the file in a similar way to Amazon, I don't know. It just seemed, and I had hoped, it was a more direct way of getting the epub from point A to point B.
|
![]() |
![]() |
Advert | |
|
![]() |
#33 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
The black area is the "body" … should be the whole screen unless you have some margins or padding as a default.
Try adding this to the style= to see if that’s the cause. Code:
<body style="background-color:rgb(0,0,0); margin:0; padding:0"> |
![]() |
![]() |
![]() |
#34 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Also, the image dimensions and the display port viewBox dimensions should be the same. Eg.
If: width="492" height="612" Then: viewBox="0 0 492 612" These should be fine since you used Sigil’s ‘add cover’ and I would think something in the translation got muffed. But it doesn’t hurt to check. |
![]() |
![]() |
![]() |
#35 | ||
Oracle Pig Keeper
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 5024
Join Date: Jun 2023
Device: Kindle Fire HD, Samsung Tab
|
Quote:
Quote:
I tried applying some ideas from Dave Gray's article: HTML vs Body: How to Set Width and Height for Full Page Size I removed the height from div and replaced it with min-height in body: Code:
<body style="margin: 0; padding 0; background-color:rgb(0,0,0)"> <div style="height: 100vh; text-align: center; padding: 0pt; margin: 0pt;"> Code:
<body style="margin: 0; padding 0; background-color:rgb(0,0,0); min-height: 100vh"> <div style="text-align: center; padding: 0pt; margin: 0pt"> One interesting note from Dave's article: Code:
...setting the width to 100% before removing the margins will cause the body element to overflow. Thank you for your continued assistance as I work to resolve this strange behavior. Tim |
||
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Oracle Pig Keeper
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 5024
Join Date: Jun 2023
Device: Kindle Fire HD, Samsung Tab
|
I wanted to update everyone on the results of my testing to date.
Previously, when I used the built-in code for a cover image, code that creates an SVG wrapper, my image would not be full screen. The image would be flush along the top, a border along the bottom edge, and a larger border along both the left and right edges. Side note: I'm sure the left and right borders are a result of keeping the aspect ratio. After extensive Googling/reading/experimenting, I've discovered the following: If I use a standard <img> tag and not the <svg> wrapper, my image is larger. There is no margin along the bottom edge! Also, the size of the image doesn't change if the encapsulating <div> does or doesn't contain "height: 100vh;". These results seem opposite of what I had read, both here and on other sites, about using the SVG wrapper. With the <img> tag, if I just set "height: 100%" and no declaration for width, my image's aspect ratio is preserved, which was also supposed to be one of the benefits of using the wrapper. As it stands now, I'm just going to abandon the idea of using the SVG wrapper since I get better results with a plain image tag. If anyone has any questions about what I've tried or would like me to provide a sample epub or screenshots, just ask. Meanwhile, I'll keep experimenting since the only thing I haven't played with yet is "@media" statements, and I want to be thorough in my research. |
![]() |
![]() |
![]() |
#37 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
A sample ePub that duplicates the problem would be nice.
|
![]() |
![]() |
![]() |
#38 |
Oracle Pig Keeper
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 5024
Join Date: Jun 2023
Device: Kindle Fire HD, Samsung Tab
|
Here, I hope this helps.
The epub contains four tests with two variations each, so eight tests in total. The tests are: Test-1a Inline SVG image with parent div style "height: 100vh" Test-1b Inline SVG image with parent div style "height: 100%" Test-2a SVG wrapped PNG image with parent div style "height: 100vh" Test-2b SVG wrapped PNG image with parent div style "height: 100%" Test-3a IMG tag loading SVG image with parent div style "height: 100vh" Test-3b IMG tag loading SVG image with parent div style "height: 100%" Test-4a IMG tag loading PNG image with parent div style "height: 100vh" Test-4b IMG tag loading PNG image with parent div style "height: 100%" Results for my tablet are: Test-1a Image with border on left, bottom, and right sides Test-1b Image with border on left, bottom, and right sides Test-2a Image with border on left, bottom, and right sides Test-2b Image with border on left, bottom, and right sides Test-3a Larger image with border on left and right sides Test-3b Larger image with border on left and right sides Test-4a Larger image with border on left and right sides Test-4b Larger image with border on left and right sides Last edited by Interrobang; 07-02-2023 at 04:41 PM. |
![]() |
![]() |
![]() |
#39 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
It appears you had a margin for your <body>. I set that to 0 and it appears to work fine...in Sigil...try it on your device.
Code:
<body style="background-color:rgb(0,0,255); margin:0"> <div style="margin: 0; padding: 0"> <svg xmlns="http://www.w3.org/2000/svg" height="100vh" width="100vw" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 1275 2100" xmlns:xlink="http://www.w3.org/1999/xlink"> <title/> <image width="1275" height="2100" xlink:href="../Images/Title_Page.png"/> </svg> </div> </body> |
![]() |
![]() |
![]() |
#40 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,417
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#41 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I use the following - I have it set as a template so Sigil uses it when I click on Tools/Add Cover
Code:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Cover</title> </head> <body style="margin:0; padding:0; background-color:black"> <h1 style="display:none" title="Cover"/> <div style="margin:0; padding:0"> <svg xmlns="http://www.w3.org/2000/svg" height="99vh" width="99vw" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 SGC_IMAGE_WIDTH SGC_IMAGE_HEIGHT" xmlns:xlink="http://www.w3.org/1999/xlink"> <image width="SGC_IMAGE_WIDTH" height="SGC_IMAGE_HEIGHT" xlink:href="SGC_IMAGE_FILENAME"/> </svg> </div> </body> </html> ![]() Let us know if that works on your device(s) as well! |
![]() |
![]() |
![]() |
#42 | |
Oracle Pig Keeper
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 5024
Join Date: Jun 2023
Device: Kindle Fire HD, Samsung Tab
|
Quote:
Code:
<body style="margin: 0; padding: 0; background-color:rgb(0,0,255)"> There does seem to be a bit of a difference in the displayed image between the tablet, Sigil, and ADE. So while Sigil and ADE are good for quick previews, I send it to the device to confirm how it will look to the end user. Or am I supposed to code it so that it looks the same on all three? At this point that seems like a near impossible task. |
|
![]() |
![]() |
![]() |
#43 |
Oracle Pig Keeper
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26
Karma: 5024
Join Date: Jun 2023
Device: Kindle Fire HD, Samsung Tab
|
Per your suggestion, I changed the code as follows:
Code:
<body style="margin: 0; padding: 0; background-color:rgb(0,0,255)"> <div style="margin: 0; padding: 0; text-align: center;"> <svg xmlns="http://www.w3.org/2000/svg" height="100vh" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 1275 2100" width="100vw" xmlns:xlink="http://www.w3.org/1999/xlink"> <title/> <image width="1275" height="2100" xlink:href="../Images/Title_Page.png"/> </svg> </div> </body> I've attached a couple of screenshots so you can see what I'm seeing. |
![]() |
![]() |
![]() |
#44 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#45 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible bug? | RbnJrg | Sigil | 142 | 09-17-2021 06:51 PM |
[BUG] - M96 out of memory - [BUG] | Alf77 | Onyx Boox | 5 | 02-05-2015 11:47 AM |
DR800 Help, I've got a bug!! A bug on my screen!! | Franky | iRex | 4 | 06-21-2011 11:45 AM |
Embedded font bug or CSS bug in ADE | JSWolf | ePub | 10 | 06-11-2011 02:34 PM |
PRS-505 bug or eBookLib bug? | porkupan | Sony Reader | 3 | 10-07-2007 10:44 PM |