Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 02-04-2014, 12:25 PM   #1
tharael89
Member
tharael89 began at the beginning.
 
Posts: 24
Karma: 12
Join Date: Aug 2013
Device: kobo aura hd
kepub "no margin" images

hi everyone.
what i'm trying to do is to put images in kepub files in "full display" mode the same way the cover appears.

to clarify; when i read a kepub i get a full display cover image and "in text" images with the book title above and page count below like in the images i've linked.
cover ------------------------ in text image


all "in text images" are wrapped in svg code like the following one.
Code:
  <div class="svgouter">
    <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 1173 1759" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
      <image height="1759" width="1173" xlink:href="../Images/MKnR_v01_029.jpg"></image>
    </svg>
  </div>
so what i want is a way to make "in text" images appear just like the cover in full display.

i've already tried with the stylesheet but it seems that the .kepub extension has an higher priority over the stylesheet and so i don't know what to do.

it's possible there is a tag kobo related to let the device do this?
or maybe do i have to add something in the opf file?

someone has a solution?

Last edited by tharael89; 03-19-2014 at 01:14 PM. Reason: update
tharael89 is offline   Reply With Quote
Old 02-05-2014, 03:44 PM   #2
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,579
Karma: 3784091
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350/650/T1, PB360, Kobo Glo/AuraHD/Aura6"
You're only getting the page_styles.css created/linked during calibre conversions because that's how your calibre conversion preferences are set. Change the settings for page margins on the convert Page Setup page if you don't like them.

Be careful of setting all page margins to zero as this might prevent the Kobo font adjustment margins slider from working - if this is important to you. Experiment before doing any mass reconversion.

You can remove or change the page_styles.css files in existing calibre library epubs by running the 'Modify Epub' plugin with the 'Modify @page and body margin styles' option checked. I think your current calibre Preferences are used to decide whether to remove or change page_styles.css.
jackie_w is offline   Reply With Quote
 
Enthusiast
Old 03-19-2014, 01:17 PM   #3
tharael89
Member
tharael89 began at the beginning.
 
Posts: 24
Karma: 12
Join Date: Aug 2013
Device: kobo aura hd
finally found some time to work on it.

i've tried a lot of different things with the stylesheet but nothing i did changed how the images were displayed.

i've updated the first post with 2 images and a better explanation of what i'm trying to do.

hope someone knows how to do this
tharael89 is offline   Reply With Quote
Old 03-20-2014, 08:49 PM   #4
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 1,116
Karma: 2516431
Join Date: Nov 2012
Location: New Zealand
Device: Kobo Glo
Quote:
Originally Posted by tharael89 View Post
finally found some time to work on it.

i've tried a lot of different things with the stylesheet but nothing i did changed how the images were displayed.

i've updated the first post with 2 images and a better explanation of what i'm trying to do.

hope someone knows how to do this
I have a feeling that the full-screen display of the cover in kepubs is done by the kepub reader as a special case, not by any setting in the book itself. In earlier firmware no covers were displayed full-screen, then after a firmware update suddenly all covers were displayed full-screen. Nothing in the books had changed, it was just the kepub reader in the firmware had been changed to display covers full-screen.
GeoffR is offline   Reply With Quote
Old 03-21-2014, 11:58 AM   #5
tharael89
Member
tharael89 began at the beginning.
 
Posts: 24
Karma: 12
Join Date: Aug 2013
Device: kobo aura hd
exactly what i feared the most
tharael89 is offline   Reply With Quote
Old 04-07-2014, 04:38 AM   #6
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 1,116
Karma: 2516431
Join Date: Nov 2012
Location: New Zealand
Device: Kobo Glo
I bought a book from Kobo that had not just the cover, but also the first few pages of text displayed in full-screen mode.

I had a look inside the epub and found that the files hadn't been split properly, and the text that was displayed in full-screen mode was in the same file as the cover. I think the kepub reader is just taking whichever file contains the cover and displaying the whole file in full-screen mode.

So perhaps you can use this to display your images full-screen by putting them in the same file as the cover image. (This was the book: http://store.kobobooks.com/en-nz/ebook/aristoi-1)
GeoffR is offline   Reply With Quote
Old 04-07-2014, 07:19 AM   #7
tshering
Guru
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 950
Karma: 297002
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by GeoffR View Post
I think the kepub reader is just taking whichever file contains the cover and displaying the whole file in full-screen mode.
Actually it is the first file (independent of whether it contains a cover). I noticed this on a couple of kepub.epubs that I made without including a cover. All of a sudden (it started with some FW higher than 2.6.1) the first chapter of each of these books were shown in full screen.

Last edited by tshering; 04-07-2014 at 07:21 AM.
tshering is offline   Reply With Quote
Old 04-07-2014, 05:51 PM   #8
arspr
None
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 267
Karma: 202982
Join Date: Mar 2011
Location: Madrid, Spain
Device: Sony PRS-650 >>> Kobo Aura HD
Quote:
Originally Posted by tharael89 View Post
hope someone knows how to do this
I don't exactly follow you. (Maybe my English?)

But nevertheless if what you are asking about is what to do for header and footer NOT being rendered inside the ebook, (it doesn't matter if around text or around images), then I fear the answer is it's just impossible. They are always rendered. They are not rendered in the very first page (cover) because Kobo has designed its software in that way.
arspr is offline   Reply With Quote
Old 04-08-2014, 05:21 AM   #9
Anak
Addict
Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.
 
Posts: 332
Karma: 401766
Join Date: Mar 2012
Location: DE
Device: Kobo Touch
Quote:
Originally Posted by GeoffR View Post
I bought a book from Kobo that had not just the cover, but also the first few pages of text displayed in full-screen mode.

I had a look inside the epub and found that the files hadn't been split properly, and the text that was displayed in full-screen mode was in the same file as the cover. I think the kepub reader is just taking whichever file contains the cover and displaying the whole file in full-screen mode.

So perhaps you can use this to display your images full-screen by putting them in the same file as the cover image. (This was the book: http://store.kobobooks.com/en-nz/ebook/aristoi-1)
I haven't delved into it but I had a similar experience that some non cover images displayed full screen (with a previous firmware release; kepub only). From memory: if a page contains only an image the reader would display it at full screen. Not sure if the image should be placed bewtween divider tags. Maybe a'simple' p tag would suffice. Trial-and-error should give the answer if, full screen images are still supported with more recent firmware releases.
Anak is offline   Reply With Quote
Old 04-08-2014, 03:15 PM   #10
tharael89
Member
tharael89 began at the beginning.
 
Posts: 24
Karma: 12
Join Date: Aug 2013
Device: kobo aura hd
@GeoffR: putting other images in the same file of the cover it's a nice idea but it doesn't solve the problem for images in the following chapters.

@Anak: i tried one time to create a single file with only the image wrapped in the svg code but it didn't work and i lost the chapter information for the following part.

maybe if i use the <p> tag and a simple "add image" with images already at the right height...
i'll try it tomorrow and see if it works.

everyone, thx for the help.
tharael89 is offline   Reply With Quote
Old 04-10-2014, 03:58 PM   #11
tharael89
Member
tharael89 began at the beginning.
 
Posts: 24
Karma: 12
Join Date: Aug 2013
Device: kobo aura hd
i've done some test. here the results
1: every image in the first file (the cover file after conversion with calibre) is displayed in full display.
2: inserting images without the svg and with only a simple <p> tag doesn't work.
header and footer are present and the image gets downsized.

moreover from what i could see in another test, after switching the cover file with another file, the latter one will be displayed in full display.
so there isn't some particular code in the cover file that tells the device what to do but is a command in the FW that makes every first file in every kepub to be displayed in full display.

that said it seems the only way to get other images (besides the cover) to be displayed full display are:
1 put all the images in the cover file
2 create a class only for kepubs (like the koboSpan) to be added to the images and recognized by the device for a full display rendering
tharael89 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"buy now" for home made kepub fxp33 Kobo Reader 4 05-17-2013 06:12 PM
Le meilleur e-reader pour lire les "pdf en images" Iklic Assistance 7 02-22-2012 07:55 AM
How to use the "off-margin" space on home screen netrobot enTourage Archive 3 05-19-2011 07:35 PM


All times are GMT -4. The time now is 04:14 AM.


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