This article+code demonstrates a technique that combines resizing and cropping to fit an image in given dimensions. The script accepts an uploaded image of arbitrary size and aspect ratio and resizes it to given dimensions, cropping the image to fit if necessary. This results in evenly sized image ideal to be used as fixed-size thumbnail.Unfortunately, classical ASP does not provide native methods for handling file uploads and processing images. Therefore, we will have to use Persits Software AspUpload and Persits Software AspJpeg component to upload and process the image.