locked
image resize RRS feed

  • Question

  • User65893105 posted

    I have a web app that uploads a series of images for display on a web page.  The images display in a rotator, so I need to resize them as they are uploaded.  I need to resize them to a fixed height (the width doesnt really matter)  but I need to maintain the aspect ratio.  So for instance I may have an image thats  650 width and 450 height

     When I upload, I want to set the height to be 300 pixels and the width to automtically adjust to maintain its aspect ratio.  Ive found a few examples to resize, but they all focus on the width with the height being automatically calculated.  Has anyone got any exampls that could achieve the results Im after ?

     

    Monday, November 24, 2008 5:45 AM

Answers