View Single Post
Old 06-04-2018, 06:38 PM   #12
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,853
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by slowsmile View Post
@RBnJrg...It's probably true that the "background-size" property would work for epubs and work on ADE. But "background-size" would not work for Kindle conversions because both the "background" property and the "background-size" property are not supported or recognized in the proprietary HTML used by Kindle format because Kindle devices only allow the background color to be controlled by the Kindle device user. This is also the reason why the "background" property is not allowed in Kindle format. Here is a list of Kindle supported html tags:

Kindle List of supported HTML Tags
Hi Slowsmile;

Well, don't believe much what Amazon says in that page When the .kf8 format was realeased, Amazon published a free .mobi ebook (about five, six years ago) whose name was (is) "Kindle Format 8 Sample". In that ebook, it was showed the new features of that "new format", among them, the possibility of working with background images. I attach a copy of that ebook so you can watch it.

So, Kindle can manage background images since the beggining of .kf8. Of course, the old .mobi format can't show anything. But, there is a little trick in order that Kindle shows a background image (as I wrote in my previous post); the page that contains the background must have some text. It's not neccesary much text, just one or two sentences. The trick is in applying the property "visibility: hidden" to that text so the reader only can see the image.

I built an epub and a .mobi (with that .epub) that I attach, so you can understand better what I say. And below you can see a screenshot of my old Kindle showing the background image:

Click image for larger version

Name:	screen_shot-36194.gif
Views:	298
Size:	46.8 KB
ID:	164300

Quote:
I also have no idea how the OP is inserting his ebook images. How did he generate his epub file? Did he use a bad conversion? He hasn't said. And there are plenty of other converters out there besides Calibre.
You are right. We don't know if the OP wants an .epub or a .mobi (.azw3, .kf8). Also, we don't know if, in the case of a .mobi, he will use Calibre, Kindlegen, Kindlepreviewer, etc. to convert the .epub or if he's using a word processor to build the source. But I suppose that he's building an .epub; if not, why is he posting in the Sigil forum?

But in any case (.epub or .kf8), he can use the method of using a background image, with the possibility of setting it in the position he wants. With an image in a new .xhtml file, very probably the OP will want that image verticaly centered. Well, is easy to achieve that by using "background-position: 50% 50%" (or whatever values the OP wishes). IMHO, is by far the easiest method to center an image in a new page.

Regards
Rubén
Attached Files
File Type: epub Full Background.epub (77.7 KB, 263 views)
File Type: mobi Full Background.mobi (184.2 KB, 250 views)
File Type: mobi KF8Sample.mobi (383.3 KB, 230 views)
RbnJrg is offline   Reply With Quote