11-30-2016, 07:41 PM | #1 |
Zealot
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. |
12-01-2016, 01:26 AM | #2 | |
Bibliophagist
Posts: 36,582
Karma: 146059340
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
._idgenobjectattribute1 { width : 15%; height : auto; } or ._idgenobjectattribute1 { width : auto; height : 11%; } |
|
12-01-2016, 02:25 AM | #3 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
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. |
|
12-01-2016, 04:05 AM | #4 |
Zealot
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> ?????? |
12-01-2016, 05:22 AM | #5 |
Wizard
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? |
12-01-2016, 05:57 AM | #6 |
Zealot
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. |
12-01-2016, 11:14 AM | #7 |
Grand Sorcerer
Posts: 27,598
Karma: 193191846
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).
|
12-01-2016, 11:31 AM | #8 |
Resident Curmudgeon
Posts: 74,563
Karma: 129670952
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. |
12-01-2016, 03:42 PM | #9 |
Wizard
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...
|
12-01-2016, 06:38 PM | #10 |
Zealot
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? |
12-01-2016, 06:55 PM | #11 |
Grand Sorcerer
Posts: 27,598
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
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.
|
12-02-2016, 02:08 AM | #12 | |
Bibliophagist
Posts: 36,582
Karma: 146059340
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
12-02-2016, 07:13 AM | #13 |
mostly an observer
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. |
12-04-2016, 06:45 AM | #14 | |
Resident Curmudgeon
Posts: 74,563
Karma: 129670952
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
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 |