Forum Moderators: open
I want to create a Web page which automatically shows images from a folder and I want it to have a fixed size for the <IMG> tags, as well as listing the width & height below each image.
Does it make any difference if I have both JPEG and GIF images?
Any guidance would be appreciated.
Thx,
May
I believe there are also commercial graphics components available that will also do this for you.
If you don't want to deal with components, you might also think about using client-side Javascript, this won't get you fixed-size IMG tags, but you might try pulling the sizes from the browser and display them under the photos.
It would be extra work , but you could name the images specially and then parse the values e.g
myImage1_100_120.jpg
>examine the header in the graphic file itself >and extract the size information
Can you give us an example then?
>>examine the header in the graphic file itself >and extract the size information
>
>Can you give us an example then?
Sample code in a wide variety of languages for extracting size information from graphics files is quite easy to find with a little searching. The standard web graphic file formats are also well-documented. I can provide links if you're interested.