09-18-2015, 05:21 AM | #1 |
Member
Posts: 17
Karma: 74144
Join Date: Apr 2015
Device: Kobo Aura H2O, Kobo Libra 2
|
ePub Images Small
I read quite a lot of scientific / computer ePubs on my Aura H2O, many of which use inline images for scientific symbols and forumlae. However, I've noticed that these images almost always look quite small when viewed on my H2O.
I know I can edit the ePubs directly, and am happy to do so, but I need some guidance on the easiest way to do this, without manually tweaking the dimensions of every single picture - many of my books have hundreds of them. The one I'm looking at right now has the height and width set to "auto" and I want it just a bit bigger, perhaps 1.5x as big as it is now. Is there an easy way to do this? |
09-18-2015, 08:51 AM | #2 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Maybe you could use KEPUB, I think it lets you zoom images?
Otherwise just set either width or height to 100% (or whatever you feel is appropriate). Careful when converting books with calibre, it may scale down images depending which output device it's set to. I noticed this too late myself and switched to "tablet" ever since... |
Advert | |
|
09-18-2015, 09:35 AM | #3 |
Member
Posts: 17
Karma: 74144
Join Date: Apr 2015
Device: Kobo Aura H2O, Kobo Libra 2
|
Thanks I'm trying to avoid Kepub at the moment. I did try setting to 100% in the Calibre editor but it made my images look crazy-large. Didn't transfer to my Kobo to test though.
My output is set to 'tablet'. |
09-18-2015, 01:36 PM | #4 |
Member
Posts: 17
Karma: 74144
Join Date: Apr 2015
Device: Kobo Aura H2O, Kobo Libra 2
|
For my current read I managed to use find/replace to ensure that the inline stuff had a different class than the standalone images. Then used "height: 1em" for the inline characters/formulae and "width: 90%" for the standalone images (leaving the other dimension as auto).
There were still quite a lot of images that didn't quite work though, entailing some manual resizing (still using width%). Was a lot of effort and I'd still much prefer to just scale everything identically if I could. Last edited by elstoc; 09-18-2015 at 02:16 PM. |
09-18-2015, 04:11 PM | #5 | |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Quote:
Luck; Ken |
|
Advert | |
|
09-18-2015, 05:37 PM | #6 |
Member
Posts: 17
Karma: 74144
Join Date: Apr 2015
Device: Kobo Aura H2O, Kobo Libra 2
|
Thanks, gave that a go too but still no joy. Part of my problem stems from the fact that the images are too small to start with (in the original epub) and I need to scale them up
Last edited by elstoc; 09-18-2015 at 06:08 PM. |
09-18-2015, 05:48 PM | #7 |
Member
Posts: 17
Karma: 74144
Join Date: Apr 2015
Device: Kobo Aura H2O, Kobo Libra 2
|
Also noticing now that some of the smaller images seem chopped off at the edges in the H2O - an issue not dependent on the input profile. Looks fine in Calibre's viewer/editor.
Last edited by elstoc; 09-18-2015 at 06:01 PM. |
09-18-2015, 10:31 PM | #8 | ||
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
Code:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 963 1400" preserveAspectRatio="xMidYMid meet"> <image height="1400" width="963" xlink:href="../images/cover.jpg"/> </svg> With this, if the image is to large for the screen, it is resized to fit. If it is to smaller than the screen, it will simply be centred. There are probably ways to change this to have smaller images fill the screen, but I have played with that. |
||
09-19-2015, 03:45 AM | #9 |
Member
Posts: 17
Karma: 74144
Join Date: Apr 2015
Device: Kobo Aura H2O, Kobo Libra 2
|
Thanks everyone. I've decided to stick with the tablet profile so that my images don't get shrunk any more.
I think some more experimentation is in order. Unfortunately most of the images in my books are a mix of single character, single equations, tables and full-screen screenshots so unless I can just scale the images up from their current dimensions, I suspect manual tweaking is going to be the only way to go. I'm slowly discovering that image handling on ePubs is a bit of a nightmare. |
09-19-2015, 09:55 AM | #10 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
How has the publisher specified the image size in the stylesheet?
If they have used an img style with a height and width of auto or height and width not specified at all then the image will display at its natural pixel size with no scaing. In that case you could easily scale up all the images by exploding the book in Calibre and running an image manipulation tool in the book's images directory. For example in Linux with the image magic tools you could make all JPG images 50% bigger by running: Code:
for F in *.jpg; do convert -resize 150% $F $F; done |
09-19-2015, 10:02 AM | #11 |
Resident Curmudgeon
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
|
The problem is that a lot of eBooks use low resolution images and on a device with a high resolution screen, the images will be small. Yes you can increase the image size, but some low resolution images will come out fuzzy as you are increasing the size of poor quality low resolution images.
Publishers need to learn that because we now have high resolution devices, we need high resolution images. But there is a downside to that. Because of low resolution devices, those high resolution image may not fit on screen properly or take up too much room on screen. |
09-19-2015, 10:24 AM | #12 |
Member
Posts: 17
Karma: 74144
Join Date: Apr 2015
Device: Kobo Aura H2O, Kobo Libra 2
|
Thanks GeoffR and JSWolf. The images are specified with a height and width of 'auto' and are therefore displaying without scaling. When I scale up the images using either height (=1em) or width (=80%) they are pixellated but at least I don't have to hold my ereader up to my face to see them.
I do like the ImageMagick idea (I already use this before uploading photos to my website). I think that might be my next experiment. |
09-19-2015, 10:42 AM | #13 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
I just discovered that mogrify is the batch version of the convert command, so
Code:
mogrify -resize 150% *.jpg |
09-19-2015, 11:02 AM | #14 |
Member
Posts: 17
Karma: 74144
Join Date: Apr 2015
Device: Kobo Aura H2O, Kobo Libra 2
|
I think that's got it. Thanks again GeoffR.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Icons or small images | techauthorbob | Sigil | 1 | 06-11-2012 11:52 AM |
small preview page images | goodnerd | Kindle Formats | 5 | 09-22-2011 11:39 AM |
RTF to epub convert images turn out small | sassanik | Calibre | 1 | 10-16-2010 12:14 AM |
My images are disappearing on small screen devices | sbrwake | Kindle Formats | 2 | 01-10-2009 09:01 PM |
Small Images on Vade Mecum with Sunrise | kg4dkf | Reading and Management | 1 | 07-21-2005 01:25 PM |