Results 1 to 3 of 3

Thread: dynamic image resizing?

  1. #1
    Join Date
    Apr 2012
    Posts
    41

    Default dynamic image resizing?

    Is there any option out there to have just one large product image stored on the server and then have the site resize them as the product page loads and not have all the different sizes stored anywhere? Part of me says this might be too slow, but with todays higher internet speeds, maybe not.

  2. #2
    Join Date
    Jun 2012
    Location
    Dalton, OH
    Posts
    12

    Default

    It is possible, but it involves some coding and could slow down the page load time just a bit. ASP.NET can dynamically create and return images in it's response stream. You would create a new .aspx page that would create the image dynamically and return it when the page is called upon. I would save the .aspx page in the same location as the "default.aspx" page. Then you would set that new .aspx page as the src attribute in the html <image> tag. For example:

    <img src="ProductImage.aspx?id=245&w=300&h=300" />

    You would probably need to include the product id, width and height of the image that you want to create. You would then need to edit the code behind file of the "ProductImage.aspx" page to dynamically create the image of the product and return it in it's response stream.

  3. #3
    Join Date
    Apr 2012
    Posts
    41

    Default

    Thanks for the help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •