Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-28-2013, 06:19 PM   #1
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
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.
Attached Files
File Type: epub Title Page based on a table.epub (14.5 KB, 209 views)

Last edited by RbnJrg; 10-28-2013 at 09:12 PM.
RbnJrg is offline   Reply With Quote
Old 10-28-2013, 07:46 PM   #2
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
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.
Tex2002ans is offline   Reply With Quote
Advert
Old 10-28-2013, 09:09 PM   #3
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Tex2002ans View Post

Would it be possible to just build the Title page entirely in SVG?
Yes, it would be possible but in that case, the text couldn't be increased/decreased. It would be like to use another type of image for the title page but in this case, wouldn't have lose of quality.

Quote:

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).
Yes, only text seems to work fine; the problems appear when we add an image.

Quote:

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 there.
It could have a solution if we use the image (any image, .svg, .jpg, .png, etc.) as a background of the cell by means of the properties:

Code:
background: url("../Images/any_image.png") center center no-repeat;
background-size: contain;
This works fantastic in Sigil... but not in ADE And I want to find something that works in ADE.

Thanks for answering Tex.
RbnJrg is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 07:34 AM.


MobileRead.com is a privately owned, operated and funded community.