View Full Version : How to: Resize Images In ASP
BarrMan
08-04-2008, 04:30 PM
Hey, I've been looking around to see how to resize images in ASP but I've found nothing that works.
I've tried many things including using external .dll files but all had errors and none actually worked.
Anyone knows maybe a good script that enables you to resize an image?
I know it's possible in PHP and in ASP.NET but I really need to get it working in ASP.
Thanks in advanced.
Spudhead
08-06-2008, 02:40 PM
The only way I've found to do it in ASP is by using ImageMagick. It's free and open-source, but it does require installing on the server. When you have it you can do stuff like:
<%
Set Img = Server.CreateObject("ImageMagickObject.MagickImage.1")
Img.Convert "C:\ImageMagick_cache\testimage.jpg", "-resize 200x200!", "C:\ImageMagick_cache\testimage_thumb.jpg"
Set Img = nothing
%>
BarrMan
08-11-2008, 11:47 PM
Hey, Thanks for that.
How can I install softwares on the server? Do I need to ask for permission or anything or I can just configure it from my server settings?
Thanks.
-Btw, I know of a really simple resize function in PHP, something like resize_image(x,y). Why is it so complicated on ASP?
Spudhead
08-12-2008, 12:12 PM
I don't know anything about your server. I don't know who it belongs to, where it's located or what OS it's running. If you're running a dedicated server with a half-decent hosting company, you should be able to remote-desktop onto the machine and operate it as you would any other. If you're hosting on a free web account, you've got virtually no chance of being able to install anything at all.
Regarding your other question... yeah, I know. To be honest, I keep a PHP image resizer script on the server and just fire calls to that if I need to do any resizing. It's simpler than mucking about installing stuff. As to why.... it just is. Don't question your Microsoft overlords :)
Hey, Thanks for that.
How can I install softwares on the server? Do I need to ask for permission or anything or I can just configure it from my server settings?
Thanks.
-Btw, I know of a really simple resize function in PHP, something like resize_image(x,y). Why is it so complicated on ASP?
You can't install the DLLs Or 3rd party software if you are having a shared hosting. You need to purchase dedicated hosting and then they will allow you to register the DLLs and install the softwares.
BarrMan
08-24-2008, 08:14 AM
Regarding your other question... yeah, I know. To be honest, I keep a PHP image resizer script on the server and just fire calls to that if I need to do any resizing. It's simpler than mucking about installing stuff. As to why.... it just is. Don't question your Microsoft overlords :)
How can I execute a PHP script on an ASP server?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.