PDA

View Full Version : Resolution problems


Gilgeam
04-02-2006, 07:42 AM
Dear all,

I'm having a very special problem and I thought I might as well ask for advice before giving up. (There is a community interested in it, too - see http://senseis.xmp.net/?SenseisLibraryOnTour for details on the project.)

Simply put, the problem is as follows:

I'm trying to display a game board on my Palm Zire 31, which has a width resolution of roughly 144 pixels. The board consists of 19 single pictures that together form it, each with a size of 11 pixels. Sometimes it's enough to view a part of the board, such as 8 of these pictures in a row; other times it would be nice to view a picture of the whole board. Accordingly, without image resizing I'm only capable of viewing 13 pictures in a line, which means that the whole board is displayed first with 13 pictures, then the missing 6 ones, and so on.
For example, instead of

1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9

it looks like this:

1 2 3 4 5 6 7 8 9 0 1 2 3
4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 0 1 2 3
4 5 6 7 8 9

which makes it pretty much impossible to work with the image. Since I have merely 144 pixels, I would need to reduce the image width to around 7 pixels. However, this also decreases the size of the pictures when displaying only a part of the board, which makes these diagrams - unnecessarily - very hard to read.

1. Is there a way to resize images according to a maximum width?

Source-wise, the board is defined as "<img src="../images/nw.gif"><img src="../images/nw.gif">" and so on, depending on the size up to 19 times, and a "<br />" at the end of each line. Maybe that helps.

2. Is there a way to disable the proportional resizing of the images? Since height is not a problem, it might improve the readability if I could at least prevent shortening the pictures.

3. If 1) is not possible, can you give me any hint on how to deal with the (probably rather complicated) problem?

Thanks a lot in advance!

iSilo
04-02-2006, 11:06 AM
The best way probably is to use an image editor to create the proper size images. You can include multiple images in your document, each at different sizes to suit all the needs that you mention.

You can have one image with all the individual images tiled and then resized to 144 x 144. Then you can use an image map so that you can click on the individual squares of the image to bring you to a full size version of the individual tiled image.