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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-30-2016, 07:41 PM   #1
ralphiedee
Zealot
ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.
 
Posts: 125
Karma: 1370
Join Date: Mar 2012
Device: none
Images in Epubs (sizing)

I did a reflowable pub and exported it from InDesign, then opened in Sigil to tweek it. As I'm looking thru the book I notice the imported images are all a smaller size then the originals. I tried removing an image and replacing with a larger one inside Sigil and it still looks very small viewing the ePub.


the one image in this example's original is 546x589 pixels inside the image window of Sigil but on the actual page it looks at least half of that. I know I have to add css and there are approx 30 images in the book that need to be bigger ( viewing size) any help in doing this?

as I look in the stylesheet I see all the css for the images so do I need to create a class and have separate images names to declare the different sizes? Any help?

._idgenobjectattribute {
height: 100%;
min-width: 100%;
width: 100%
}
._idgenobjectattribute1 {
height: 88px;
line-height: 1.2;
width: 88px
}
._idgenobjectlayout {
border-bottom-width: 0;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
display: block;
text-align: center;
padding: 0;
margin: 0
}
._idgenobjectstyleoverride {
border-bottom-width: 0;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
display: block;
padding: 0;
margin: 0
}


R

Last edited by ralphiedee; 11-30-2016 at 08:18 PM.
ralphiedee is offline   Reply With Quote
Old 12-01-2016, 01:26 AM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 34,557
Karma: 144552660
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by ralphiedee View Post
as I look in the stylesheet I see all the css for the images so do I need to create a class and have separate images names to declare the different sizes? Any help?


Code:
._idgenobjectattribute1 {
    height: 88px;
    line-height: 1.2;
    width: 88px
    }
At times, I've gone through and replaced all absolute image sizes with relative images sizes. Generally, I assume the smallest screen size would be 600 pixels wide by 800 tall so generate a percentage size base on the image width in pixels divided by 6 and tossing the height setting. You can treat the height the same if preferred using /8 to get the percentage if preferred.

Code:
._idgenobjectattribute1 {
    width : 15%;
    height : auto;
    }

 or

._idgenobjectattribute1 {
    width :  auto;
    height : 11%;
    }
This has the advantage for me that the image uses the same portion of the screen on any of my ereaders instead of going from half page width on a older low resolution device to thumbnail size on my KA1. For the most part I don't worry about exact numbers and round to the nearest integer percentage (15% instead of 14.67% in the example above).
DNSB is offline   Reply With Quote
Advert
Old 12-01-2016, 02:25 AM   #3
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by ralphiedee View Post
I did a reflowable pub and exported it from InDesign, then opened in Sigil to tweek it. As I'm looking thru the book I notice the imported images are all a smaller size then the originals. I tried removing an image and replacing with a larger one inside Sigil and it still looks very small viewing the ePub.

... snip ...
Although giving part of the stylesheet is nice, the XHTML code for the images would be better to see what is going on.

One issue I have with the ID stylesheets is the usage of hard values instead of relative values. You should adapt most of them to have a better ePUB. This of course not only for the images.
Toxaris is offline   Reply With Quote
Old 12-01-2016, 04:05 AM   #4
ralphiedee
Zealot
ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.
 
Posts: 125
Karma: 1370
Join Date: Mar 2012
Device: none
Hmm, A little confused, this code
._idgenobjectattribute1 {
height: 88px;
line-height: 1.2;
width: 88px
}
is in the css stylesheet

I changed it to

._idgenobjectattribute1 {
width : 15%;
height : auto;
}

nothing happened, are you referring to add this to the xhtml code for the actual image?

sample is here

<div class="_idgenobjectlayout">
<div class="jarvis-box" id="_idContainer001">
<img alt="Jarvis Circle 4OrigSize" src="../Images/Jarvis%20Circle%204OrigSize.png" style="font-size: 0.75em;" /><br class="calibre2" />
</div>

??????
ralphiedee is offline   Reply With Quote
Old 12-01-2016, 05:22 AM   #5
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
As shown in you example, the following classes are interesting and worth a look at:

- _idgenobjectlayout
- jarvis-box

The first one you already have shown and is not really interesting (but perhaps redundant). Are there more classes referenced in the parents of the div?
Toxaris is offline   Reply With Quote
Advert
Old 12-01-2016, 05:57 AM   #6
ralphiedee
Zealot
ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.
 
Posts: 125
Karma: 1370
Join Date: Mar 2012
Device: none
Below are all the classes in the css

._idgenobjectattribute {
height: 100%;
min-width: 100%;
width: 100%
}
._idgenobjectattribute1 {
width: auto;

height: 40%;




}
._idgenobjectlayout {
border-bottom-width: 0;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
display: block;
text-align: center;
padding: 0;
margin: 0
}
._idgenobjectstyleoverride {
border-bottom-width: 0;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
display: block;
padding: 0;
margin: 0
}

I see you reference

- _idgenobjectlayout
- jarvis-box

the first is in the css the second is in the xhtml so should I add
{
width : 15%;
height : auto;
}

to the jarvis -box and all other images ( with similar classes?)

Last edited by ralphiedee; 12-01-2016 at 06:03 AM.
ralphiedee is offline   Reply With Quote
Old 12-01-2016, 11:14 AM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,466
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Other than the thread-title, there's nothing Sigil-specific here, guys. This is just a "sizing images with css in epubs" conversation. Feel free to continue the conversation in the epub forum (where I'm moving this thread).
DiapDealer is offline   Reply With Quote
Old 12-01-2016, 11:31 AM   #8
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,661
Karma: 127838198
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Don't assume the smallest screen size is 800x600. There are lower resolution screens in use such as 800x480 (for example).

Just use a percent to specify height and/or width. Just be careful of how the image is orientated. For example, a map that's set to display in portrait can be too small. ROtate the map so it can be displayed in landscape.
JSWolf is offline   Reply With Quote
Old 12-01-2016, 03:42 PM   #9
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Well, if the class jarvisbox sets the width to 15%, you got your culprit right there...
Toxaris is offline   Reply With Quote
Old 12-01-2016, 06:38 PM   #10
ralphiedee
Zealot
ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.ralphiedee is no ebook tyro.
 
Posts: 125
Karma: 1370
Join Date: Mar 2012
Device: none
Yes I believe this thread went a bit wacky in terms of me solving my problem, just want to recap,

I'm editing an epub in Sigil I see that the images in the epub ( roughly 25 ) are much smaller than they were in the InDesign document. So I need to be able to make each image bigger. Not all images are the same size but all are too small.

OK in the style envelope there are two css sheets , one with all the font and one with font and some image classes listed below

._idgenobjectattribute {
height: 100%;
min-width: 100%;
width: 100%
}
._idgenobjectattribute1 {
width: auto;

height: 40%;




}
._idgenobjectlayout {
border-bottom-width: 0;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
display: block;
text-align: center;
padding: 0;
margin: 0
}
._idgenobjectstyleoverride {
border-bottom-width: 0;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
display: block;
padding: 0;
margin: 0
}

now to find each image I go to the xhtml page where the particular image sits heres a sample of of one image by itslf on a page

<body class="calibre" id="GUWG_FINALarticleRefllowW_Cover_Dee_11_16_16" xml:lang="en-GB">
<p class="body-text"><img alt="CH02_01_finalReflow" class="calibre1" src="../Images/CH02_01_finalReflow.jpg" /></p>
</body>
</html>

NOW How can I make this image bigger? Since there are roughly 25 images that need editing 1 size will NOT fill all so I would have to target EACH IMAGE not the css code correct?

If so I would think I need a height and width in-between the following am I right?

<p class="body-text"><img alt="CH02_01_finalReflow" class="calibre1" src="../Images/CH02_01_finalReflow.jpg" />
xxxxxxx here?
xxxxxxx here?
</p>

And yes I did see a reply that this was not Sigil specific its just how do I make images in Sigil bigger.

I think thats pretty much explains it.

Any help?
ralphiedee is offline   Reply With Quote
Old 12-01-2016, 06:55 PM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,466
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by ralphiedee View Post
And yes I did see a reply that this was not Sigil specific its just how do I make images in Sigil bigger.
No. It's "how do I make images in EPUBS bigger". Sigil has nothing to do with it. The techniques being discussed could be applied in any editing environment. The fact that you're using Sigil to edit your EPUB does not automatically make the topic relevant to the Sigil forums. The changes you need to make could just as easily be accomplished with calibre's EPUB editor (or in an external html/css editor). That's why the topic belongs in the EPUB forum and not Sigil's.
DiapDealer is offline   Reply With Quote
Old 12-02-2016, 02:08 AM   #12
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 34,557
Karma: 144552660
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Don't assume the smallest screen size is 800x600. There are lower resolution screens in use such as 800x480 (for example).

Just use a percent to specify height and/or width. Just be careful of how the image is orientated. For example, a map that's set to display in portrait can be too small. ROtate the map so it can be displayed in landscape.
Exactly where am I to draw the line? One of my neighbours still uses his antique tablet with a 640x480 screen. Or perhaps I could dig my Palm Pilot out of the basement and use it's 160x160 screen? My personal choice was the lowest resolution device that I use/have used to read an ebook on as the basis for my percentage width or height for image scaling.
DNSB is offline   Reply With Quote
Old 12-02-2016, 07:13 AM   #13
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
I avoid sub-full-page images wherever I can. The older Kindles don't handle them well, and few e-readers are large enough to display photo layouts. I generally upload images 800 pixels wide and use a width="100%" instruction so images don't look tiny on an iPad or a Fire 8.9 tablet.

The epub looks good on the Nook, though on B&N's version of Look Inside (not in the downloaded book) the cover is sometimes truncated. The cover was generated by Sigil from the product image, so perhaps I should resize that in the future to 800 pixels wide.
Notjohn is offline   Reply With Quote
Old 12-04-2016, 06:45 AM   #14
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,661
Karma: 127838198
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Notjohn View Post
I avoid sub-full-page images wherever I can. The older Kindles don't handle them well, and few e-readers are large enough to display photo layouts. I generally upload images 800 pixels wide and use a width="100%" instruction so images don't look tiny on an iPad or a Fire 8.9 tablet.

The epub looks good on the Nook, though on B&N's version of Look Inside (not in the downloaded book) the cover is sometimes truncated. The cover was generated by Sigil from the product image, so perhaps I should resize that in the future to 800 pixels wide.
You don't want to drop the resolution of the cover because it can look fuzzy when it's stretched to fit the screen. You have to take into account the new hi-res eInk screens. The resolution is 1430 x 1080. So no, 800px wide is too small.
JSWolf 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
question about images in epubs juliana000 Kobo Reader 6 09-27-2013 09:11 PM
Kindle re-sizing images John123 Workshop 0 02-26-2013 11:12 AM
Keeping images from Re-sizing on Kindle Fire MJWare Kindle Formats 3 08-21-2012 10:32 AM
Re-sizing images during conversion jer989 Conversion 1 04-23-2012 02:43 PM
Image sizing for Epubs purcelljf ePub 2 08-19-2010 05:01 PM


All times are GMT -4. The time now is 08:57 AM.


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