![]() |
#1 |
Member
![]() Posts: 23
Karma: 10
Join Date: Oct 2020
Device: pc
|
Help! Small white margin is not dissapear on full-page img
Hi, I have view multiple of the post and try to find a way to get rid of the small white line in when I try to convert epub to pdf. the image seem fine at first glance but when zoom in at the bottom of the page, the small white line would be visible.
Here is my code (see full code in Txt file) <head> <title>part0001</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link href="../stylesheet.css" rel="stylesheet" type="text/css"/> <style type="text/css"> @page {padding: 0pt; margin:0pt} body { text-align: center; padding:0pt; margin: 0pt; } </style> </head> <body> <div> <img <img alt="Image" src="image_rsrc2GE.jpg" width="1358" height="1920"/> </div> </body> </html> |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you want full screen images use SVG, there is an axample of th emarkup here: https://manual.calibre-ebook.com/con...ormatting-demo
|
![]() |
![]() |
![]() |
#3 |
Member
![]() Posts: 23
Karma: 10
Join Date: Oct 2020
Device: pc
|
Still cant seem to get rid of the white line
I try the demo code that you provide but it doesn't work the white line at the bottom edge is still there. Here is how the code look like:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>part0003</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link href="../stylesheet.css" rel="stylesheet" type="text/css"/> <style type="text/css"> @page {padding: 0pt; margin:0pt} body { text-align: center; padding:0pt; margin: 0pt; } </style> </head> <body> <div style="display:none" class="title">Full screen image</div> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 1358 1920" preserveAspectRatio="xMaxYMid meet"> <image width="100%" height="100%" class="full-page-stretch" xlink:href="image_rsrc2GE.jpg"/> </svg> </body> </html> |
![]() |
![]() |
![]() |
#4 |
Book E d i t o r
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Did you open the image in an image program to see if the line is in the image?
I see lots of codes in your stylesheet that can cause problems. |
![]() |
![]() |
![]() |
#5 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,475
Karma: 167912649
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Out of curiosity, what is the purpose of the class="full_page_stretch" class used in your code?
Quote:
|
|
![]() |
![]() |
![]() |
#6 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,475
Karma: 167912649
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Also you are using a 1358x1920 image but your PDF conversion settings are for a custom 1359x1920 page.
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You cant preserve aspect ratio in your svg if you want no white borders.
|
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 23
Karma: 10
Join Date: Oct 2020
Device: pc
|
|
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 23
Karma: 10
Join Date: Oct 2020
Device: pc
|
|
![]() |
![]() |
![]() |
#10 |
Member
![]() Posts: 23
Karma: 10
Join Date: Oct 2020
Device: pc
|
|
![]() |
![]() |
![]() |
#11 |
Member
![]() Posts: 23
Karma: 10
Join Date: Oct 2020
Device: pc
|
|
![]() |
![]() |
![]() |
#12 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,146
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
preserveAspectRatio="none"
|
![]() |
![]() |
![]() |
#13 |
Member
![]() Posts: 23
Karma: 10
Join Date: Oct 2020
Device: pc
|
When I try the preserveAspectRatio="none" The white line is still there and the image is overflow to other page (image p5). Here is how the full code look like:
<div style="display:none" class="title">Full screen image</div> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 1358 1920" preserveAspectRatio="none"> <image width="100%" height="100%" xlink:href="image_rsrc2GE.jpg"/> </svg> P.S If I type in the custom size output as 1358x1920 instead of 1359x1920 the side of the image will also have small white border line(image p5.2) you can compare with the image p5 since the photo took at the same horizontal location |
![]() |
![]() |
![]() |
#14 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,475
Karma: 167912649
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
How does the image look at a more reasonable magnification, say 200%. Your images all seem to be at 6400%. Can you also show an image of the portion between two pages.
|
![]() |
![]() |
![]() |
#15 | |
Member
![]() Posts: 23
Karma: 10
Join Date: Oct 2020
Device: pc
|
Quote:
<style type="text/css"> @page {padding: 0pt; margin:0pt} body { text-align: center; padding:0pt; margin: 0pt; } </style> </head> <body> <div style="display:none" class="title">Full screen image</div> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 1358 1920" preserveAspectRatio="none"> <image width="100%" height="100%" xlink:href="image_rsrc2GE.jpg"/> </svg> </body> </html> P.S I don't want the white part because I' bit OCD or perfectionist |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I remove white space under the full page image. | piyarad27 | Conversion | 0 | 01-17-2021 03:41 AM |
How to make pages with full bleed / full page images | mypointofview | Editor | 5 | 06-21-2016 05:45 PM |
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; } | cybmole | Conversion | 15 | 02-12-2011 11:57 AM |
Changing Margin Settings to use full width of the Screen??? | JBlyth | Kobo Reader | 9 | 07-05-2010 09:54 AM |
Changing Margin Settings to use full width of the Screen | JBlyth | Kobo Reader | 0 | 07-02-2010 10:31 PM |