San
|
Posted: 12/12/2003, 2:51 PM |
|
Hi,
Does Anyone know how to create thumbnail image while uploading pictures in ASP? My server does not have ASP component ASPThumbnailer.Thumbnail.
Help please
Thanks San
|
|
|
Mehmet Ozdemir
|
Posted: 12/14/2003, 2:16 AM |
|
I had exactly the same problem, the hosting company refused to install ASPImage on the server. Fortunately they server also hosted PHP. I just grabbed some existing php code then simply called the php page (whos sole purpose was image rescaling) from asp. see here:
Dim xmlhttp
set xmlhttp = server.createobject("Msxml2.xmlhttp")
xmlhttp.open "GET", "http://" & application("base_url") & "thumbnailer/thumbnail.php?gd=2&src=../" & application("product_images_large") & Products.FileUpload1.Value & "&maxw=500&savepath="&application("product_images_med"), False
xmlhttp.send
so the page being called is thumbnailer.php
works great !
|
|
|
|