A complete image manupulation solution in classical ASP

Does anyone have a past experience on implementing a complete image manipulation solution in classical ASP? I need a solution where a user can:

  1. Upload an image
  2. The uploded image is stored on the filesystem (inside or outside wwwroot)
  3. The image is displayed in the browser but it is resized... on-demand

The on-demand resizing is my main problem. In PHP I could use phpThumb library that allows me to specify a filename and max width/height in a query string. The library resizes the images accordingly, in addition, it caches the copy of the image so that next time the same image with same width/height is requested it is served from the cache.

Can I implement such a solution in classical ASP, if possible with open-source components? ImageMagick?


It would appear that ImageMagick has a COM+ component that can be used for this purpose.

Another mature (though I don't think it's free) library that's commonly used for this is AspJpeg.

ASP.net has build-in functions to manipulate images, since most servers serving ASP classic have some version of ASP.net installed, you can rely on it to do the work.


<img src="resize.aspx?file=/gallery/photo1.jpg&w=300&height=400" />

This post is a little old, but we recently faced the same issues regarding resizing via Classic ASP.

We found a solution which used the VB.NET route, but it didn't do everything we wanted so we adapted it to include features to resize, crop, pad (with colour) and display the resulting jpg out to the screen and / or a file.

We've uploaded our efforts here in a zip file with the script and an example asp file with instructions: http://easierthan.blogspot.co.uk/2013/02/code-tip-3-classic-asp-image-resizer.html

With regards to uploading, we used http://www.freeaspupload.net which seemed to work very well.

Need Your Help

Find and Replace Inside a Text File from a Bash Command

bash scripting ssh ironpython

What's the simplest way to do a find and replace for a given input string, say abc, and replace with another string, say XYZ in file /tmp/file.txt?

AJAX database update with CSS button color change using Codeigniter

javascript css ajax codeigniter checkbox

I've seen good posts here of bits and pieces of what I am attempting to do, but nothing with all areas addressed. Does anybody have any code examples or advice to help me do what I am trying to do?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.