Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-20-2021, 05:13 PM   #16
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
@Karellen, I had a look at the code for the scramblled eBook. The following code will work much better then what's therefor your back cover.

CSS
Code:
html {
  margin-right: -45px;
  margin-left: -45px;
  break-inside: avoid !important;
}
body {
  widows: 1;
  orphans: 1;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  text-align: justify;
}
img {
  max-height: 100%;
  max-width: 100%;
}
p {
  margin-top: 0;
  margin-bottom: 0;
  text-indent: 1.2em;
}
.cover {
  text-align: center;
  text-indent: 0;
  height: 100%;
}
back_cover.xhtml
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="en" xml:lang="en">
<head>
<title>Scrambled</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css"/>
</head>
<body>
<div class="cover">
<img alt="" class="cover" src="back.jpg"/>
</div>
</body>
</html>
JSWolf is offline   Reply With Quote
Old 09-20-2021, 06:20 PM   #17
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,094
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by RbnJrg View Post

In my previous post I gave a link to another post of mine, where I describe the method to get what you want. I include again the link:

https://www.mobileread.com/forums/sh...21&postcount=9
Oops, apologies, I overlooked the link

Quote:
Originally Posted by RbnJrg View Post

Basically, it consist on include the image as a background of the html tag, as follow:
Oh, of course. Set the image as a background image. Why didn't I think of that. I haven't tried it yet, but will do so a bit later.


Quote:
Originally Posted by RbnJrg View Post
Two more things:

a) If your image has, for example, a relation of 4/3 and the ereader has a relation of 16/9, there is no way to avoid blank spaces at top and bottom. Even Kindle shows covers with blanks when the image doesn't have the same with/height relation than the screen reader.

b) Not all ereaders, support perfectly an image as background in the html tag. For example, for Android, Readily, Lithium and PocketBook support zero-bleed imagery. But for eink readers, I don't know of any with that capability.

In general, readers based on webkit (specially modern versions of webkit) will support images with zero-bleed. It's more doubtful for readers based on RMSDK (Legacy ADE).
Understood. Thanks.


Quote:
Originally Posted by Quoth View Post

I can't think why anyone wants the rear of a paper book in an ebook, though if it's for yourself you can add it and not fuss about white space. Very few paper books match phone, tablet or ereader screen aspect ratios.
You are correct, a back cover is not needed and not normal in an ebook. But I enjoy the challenge of recreating the artwork from both covers. Sometimes I enjoy that challenge more than the novel...

Where I also happen to own the paper copy, then I will recreate the front cover, and then at the same time recreate the back cover which is always much simpler than the front cover. These are for my own personal library and are not uploaded/sold/distributed anywhere. It is just for my own personal challenge and satisfaction.


Quote:
Originally Posted by Hitch View Post

There's actually no fix for most vendors. Almost all vendors treat the front cover differently--Kobo, Nook, Apple.
Right. It was something I thought I was getting wrong, so just wanted to know where I was going wrong.


Quote:
Originally Posted by Hitch View Post

Never send a MOBI to an iOS device to preview as a Kindle eBook. The preview is totally worthless; you'll see what is effectively a KF7 (primitive) version of the file. In KP3, convert the file to AZK and then use a USB cable, connected to a computer, connected to iTunes, to go to Sharing--Kindle and drop the AZK file there. (If you search the net, you can find illustrated instructions on this.)

Then and only then will you see something remotely close to what a MOBI in K4iOS will look like.
I had no idea about this. Thank you for this explanation.


Quote:
Originally Posted by JSWolf View Post

@Karellen, I had a look at the code for the scramblled eBook. The following code will work much better then what's therefor your back cover.
Thank you, I will give this a try also a bit later today.
Karellen is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bogus takedown notice sent to the wrong person; Harvard Prof. Lessig fights back Alexander Turcic General Discussions 35 03-06-2014 07:33 AM
Wrong Cover Image Fabe ePub 2 04-02-2012 09:16 AM
Wrong cover clady Calibre 8 02-05-2011 02:57 PM
M-Edge sent the wrong cover daffy4u Amazon Kindle 23 03-13-2009 02:49 PM
BD: Cover Art - What am I doing wrong? edbro Sony Reader 24 08-22-2007 07:04 AM


All times are GMT -4. The time now is 06:41 AM.


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