Thread: resize images ?
View Single Post
Old 04-02-2011, 05:16 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by cybmole View Post
i have converted a PDF format game strategy guide to epub and to my suprise it is quite readeble in epub.

there are lots of embedded images (screen shots) all at 400x320 pixels. (

is there a simple way to re-code so they display resized i.e. enlarged to close to full screen on my sony reader

e.g. via CSS or by adding attributes to the img src tag. there are 200+ images so it has to be a global regex or css solution ?

sony screen spec is 600x800 in portrait mode so scaling by 150% would be great. images would then go to 600 x480 & would fit full width of screen ?
Have you tried giving the Image tag a a style with

width: 100%;
height: 100%

You may want to take a gander at section 10.4 of thehttp://www.w3.org/TR/CSS2/visudet.html
and do whatever to maintain aspect or a pleasing image (no rule says the all have to have the same style )
theducks is offline   Reply With Quote