in reply to Re: HTML image resizing with Image::Info based on max height/width
in thread HTML image resizing with Image::Info based on max height/width

There is an easy way to do it in HTML... If you want a fixed width or a fixed height: - Fixed height (the width will be adjusted automatically keeping the ratio of the picture) <img src="07cat.jpg" height="96" /> - Fixed width (the height will be adjusted automatically keeping the ratio of the picture) <img src="07cat.jpg" width="96" /> I hope this will help too...
  • Comment on Re^2: HTML image resizing with Image::Info based on max height/width

Replies are listed 'Best First'.
Re^3: HTML image resizing with Image::Info based on max height/width
by Anonymous Monk on May 12, 2008 at 00:58 UTC
    A bit of old school HTML. <img src="index.jpg" width="800" height="*"> The asterisk keeps it proportional, no matter the original size. Asterisks also work with table dimensions.
Re^3: HTML image resizing with Image::Info based on max height/width
by Anonymous Monk on May 12, 2008 at 01:39 UTC
    It should also be noted that the following is very useful, dynamic resizing based on the window and element sizes:
    <img src="index.jpg" width="90%" height="*">