![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ? |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
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 ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
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...)
|
![]() |
![]() |
![]() |
#5 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
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. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 | 3 | 07-21-2009 01:28 AM | |
Photo resize | shousa | Workshop | 1 | 01-31-2008 08:14 AM |