Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-02-2011, 04:51 PM   #1
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
resize images ?

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 ?
cybmole is offline   Reply With Quote
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: 29,781
Karma: 54830978
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
Advert
Old 04-03-2011, 01:39 AM   #3
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
the images had a default style of height auto width auto - i tried removing that & also googling, concluded ( maybe wrongly ) that auto & 100% would do the same thing so did not explcitly test the latter.
cybmole is offline   Reply With Quote
Old 04-03-2011, 04:30 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Don't use "width: 100%; height: 100%;", that will (or might) stretch the images out of proportion. Use only "width: 100%;" and it should be fine, but it might depend on the container too (for example, maybe each image is inside a <div>, and this <div> has some specified width too...)
Jellby is offline   Reply With Quote
Old 04-03-2011, 07:14 AM   #5
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Before you get to far into this, do a few images and test in the actual device. You are expanding a bitmap and you are likely to get jaggies, which may or may not be acceptable. To some degree it will depend on the resolution of the images to begin with.
mrmikel is offline   Reply With Quote
Advert
Old 04-03-2011, 08:27 AM   #6
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by mrmikel View Post
Before you get to far into this, do a few images and test in the actual device. You are expanding a bitmap and you are likely to get jaggies, which may or may not be acceptable. To some degree it will depend on the resolution of the images to begin with.
a set of .jpg actually but I do take your point. I think Illl leave it as-is - use the epub mostly for text narrative & refer to original pdf for colour pcs.

I would have left the whole thing in .pdf but my sony reader choked on it - too big I guess - gave invalid page errors for the pdf format.
cybmole is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Images Folder - Resize files Fossil Sigil 9 07-24-2010 11:36 AM
Resize PDF termn8er Astak EZReader 11 11-14-2009 05:26 PM
How to resize pdf? Project PDF 3 07-21-2009 01:28 AM
Photo resize shousa Workshop 1 01-31-2008 08:14 AM


All times are GMT -4. The time now is 12:25 PM.


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