Re: Picture Sizes
From: Exponent (exponent_at_ammara.com)
Date: 10/04/04
- Next message: Aaron [SQL Server MVP]: "Re: Picture Sizes"
- Previous message: Agoston Bejo: "Re: Newbee need help."
- In reply to: Popeye: "Picture Sizes"
- Next in thread: Aaron [SQL Server MVP]: "Re: Picture Sizes"
- Reply: Aaron [SQL Server MVP]: "Re: Picture Sizes"
- Messages sorted by: [ date ] [ thread ]
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 > >
- Next message: Aaron [SQL Server MVP]: "Re: Picture Sizes"
- Previous message: Agoston Bejo: "Re: Newbee need help."
- In reply to: Popeye: "Picture Sizes"
- Next in thread: Aaron [SQL Server MVP]: "Re: Picture Sizes"
- Reply: Aaron [SQL Server MVP]: "Re: Picture Sizes"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|