10-28-2013, 06:19 PM | #1 |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
A problem with images inside tables
Hi friends:
In Kindle, when I want to force it to show text in one page, I use the technique I described here: https://www.mobileread.com/forums/sho...36&postcount=4 Of course, since is not possible to use this kind of trick in ADE, so I thought to use instead of display-table, display-row, etc., properties, to employ a "real table" for that purpose. But I found a problem, I can't include a image that resize itself. I want to use a .png/.jpg image inside a svg wrapper; that svg container must be in a cell of my table; that cell must be a 10% of the height of the screen (so, that height varies when the device is in portraid or lanscape mode). I don't know how to do in order that that image displays properly. When I work with only text, to use a <table> seems to be a solution for ADE but when I add a image... the problems appear. Below I attach an ePub with what I want to do. Many thanks in advance for any help you can give me. Rubén PS: Sigil doesn't show the image at all. Last edited by RbnJrg; 10-28-2013 at 09:12 PM. |
10-28-2013, 07:46 PM | #2 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Would it be possible to just build the Title page entirely in SVG?
I was doing some messing around with exporting an SVG title page right from Inkscape... The pure text version worked fine, but adding the image brought in some odditities (this will require more testing to try to come up with a step-by-step process). I also stumbled upon this topic from pdurrant: https://www.mobileread.com/forums/showthread.php?t=55563 Might be able to use that code as a very good base to build from. I plopped your PNG image into pdurrant's code, tweaked a few of the numbers to get it centered, and it showed up fine in Sigil... BUT, when I tested on my Nook (also ADE), all I have is a blank space where the image should be. Edit: I was able to get your image to show up using the Inkscape method (it embedded the image as Base64 I believe). The Inkscape method was able to show the image in ADE fine, but on my Nook, the placement of the image was completely wrong. Last edited by Tex2002ans; 10-28-2013 at 09:09 PM. |
Advert | |
|
10-28-2013, 09:09 PM | #3 | |||
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Quote:
Quote:
Code:
background: url("../Images/any_image.png") center center no-repeat; background-size: contain; Thanks for answering Tex. |
|||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cover & inside images in epub on different readers | JoanneM | ePub | 21 | 07-03-2012 08:39 PM |
TOC links inside tables in epub don't translate in mobi | wannabee | Calibre | 1 | 01-20-2011 01:13 AM |
Q: Tables, images, and word-wrap | AndrewH | Workshop | 2 | 12-22-2010 02:34 AM |
PDF conversion which respects images/tables? | fivebells | Amazon Kindle | 9 | 12-19-2010 11:18 AM |
PRS-300 - PDF Files Loses Tables and Images | rtv_73 | Sony Reader | 12 | 03-03-2010 03:38 AM |