You specify the image path and filename and the height and width required and this script will return the resized image.
The original aspect ratio of the image will allways be retained and whitespace will be added if neccessary to ensure that the dimensions are as requested. If there is any whitespace then you can choose to have the image centred or left/right aligned or top/bottom aligned.
Call the script using the following syntax:
Where src is the path and filename (URL Encoded), align is the horizontal alignment (left, center or right, default is left), valign is the vertical alignment (top, center or bottom, default is top), height is the height in pixels, and width is the width in pixels.
by John Avis | February 20, 2019
I was recently doing some work on a website which has a mixture of older Classic ASP pages and ASP.NET Web Forms pages and ran into problems with custom error pages.
by John Avis | March 21, 2017
I recently needed to change a client's website to send emails using Amazon SES and encountered a few issues.
by John Avis | June 8, 2016
Although probably no one cares about Classic ASP, except those who still need to support it, I was refreshing my memory today on how to use classes in Classic ASP and found a couple of options for simulating constructors with parameters.