Image alignment problem

Discussion in 'ASP .Net' started by Samuel, Apr 23, 2009.

  1. Samuel

    Samuel Guest

    Hi

    I have the following (common) situation:

    I have to present different images that are not square within a square and
    fixed size box /cell.
    Setting the alignment is not enough because I have to set at runtime the
    size of the image control based on the size of the image (the alignment of
    the image control is set) but the image is just a file on the internet so
    how can I give this consistent look without actually modifying the images by
    making them square by adding white etc on the sides.


    Thank you in advance,
    Samuel
    Samuel, Apr 23, 2009
    #1
    1. Advertising

  2. On Apr 23, 3:56 pm, "Samuel" <> wrote:
    > Hi
    >
    > I have the following (common) situation:
    >
    > I have to present different images that are not square within a square and
    > fixed size box /cell.
    > Setting the alignment is not enough because I have to set at runtime the
    > size of the image control based on the size of the image (the alignment of
    > the image control is set) but the image is just a file on the internet so
    > how can I give this consistent look without actually modifying the images by
    > making them square by adding white etc on the sides.
    >
    > Thank you in advance,
    > Samuel


    Hi Samuel,

    If I were you I would do HTTPHandler to resize images on the fly
    similar to the following example

    http://blog.lavablast.com/post/2008/07/Image-Thumbnail-Caching.aspx
    http://blog.lavablast.com/ImageCacheManager/default.aspx (demo)

    Hope this helps
    Alexey Smirnov, Apr 25, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nathan Sokalski
    Replies:
    2
    Views:
    453
    Eliyahu Goldin
    Jun 8, 2005
  2. Don@NoSpam

    Help with image/text alignment

    Don@NoSpam, May 30, 2004, in forum: HTML
    Replies:
    10
    Views:
    706
    Don@NoSpam
    Jun 2, 2004
  3. Adrian Bailey

    Image alignment

    Adrian Bailey, Apr 1, 2005, in forum: HTML
    Replies:
    2
    Views:
    501
    Nico Schuyt
    Apr 1, 2005
  4. CRON
    Replies:
    5
    Views:
    402
  5. Christoph

    Image alignment using CSS

    Christoph, Oct 10, 2006, in forum: HTML
    Replies:
    7
    Views:
    52,389
Loading...

Share This Page