Re: Picture Sizes

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Exponent (exponent_at_ammara.com)
Date: 10/04/04


Date: 4 Oct 2004 13:34:12 +0200


Why not resample the image to fit inside the area you want (retaining aspect ratio, of course) and store
the actual dimensions in the table - then there is no stretching/distortion, maximum display quality, minimum
server load and no wasted bandwidth.

--
_______________________________________________________
http://www.ammara.com/   
Image Handling Components, Samples, Solutions and Info
DBPix 2.0 - lossless jpeg rotation, EXIF, asynchronous
"Popeye" <paul@pgcomputing.not> wrote:
>I have an asp page that retrieves various details from and Access table. One 
>of the columns stores an image name and is written into the html as follows:
>
>Response.Write "<td width=200 height=200 valign=top><img border=0 
>src=../../gallery/" & rec1("picture") & "></td>"
>
>The image loads fine at runtime but many of the images are larger than 
>200x200. I know i can resize the image to 200x200 quite easily but that 
>would lose its aspect ration. Is there a way to load the image so it would 
>fit into the 200x200 cell but maintain its aspect ratio.
>
>Regards
>
>Paul 
>
>


Relevant Pages

  • Re: My latest magnum opus!
    ... four years, not one, has fit that model. ...  All, without exception, ... would do "load, load, store store" for ...
    (comp.lang.c)
  • She wants to submit average covenants in response to Allahdads kitchen.
    ... Some tempers breathe, appoint, and fit. ... store. ... Almost no constitutional receptions assist Carol, ...
    (sci.crypt)
  • Re: Encoding Date/Time
    ... How many bytes is that data guaranteed to fit in? ... Leaving years aside for the time being: if we wish to store mdhms as ... we can also just use the unix timestamp format, ... 16 bits for a fractional second, making it accurate to around 15us; ...
    (comp.lang.c)
  • Re: Encoding Date/Time
    ... Leaving years aside for the time being: if we wish to store mdhms as separate data elements, we need a minimum of 26 bits. ... If we try to fit a year value into 7 bits, the biggest number we can have is 127. ... schema expires before mine. ... Having said that, if we bite the bullet, forget the minbits requirement, and settle for 64 bits, we can not only make decoding a little bit easier but also massively extend the range: ...
    (comp.lang.c)
  • Re: "Full screen" = Pan & Scan???
    ... statements on the box and sometimes at the beginning of the feature itself that says the presentation has been changes to fit your "4:3" screen, ... How many have ever tried to really explain aspect ratio of TV and movies and broadcast signals to relatives;-) ... on a DVD package. ... Perhaps the term "pan and scan" confused those people, ...
    (alt.video.dvd)