Developer forum

Forum » Development » getImage.aspx

Reply
Hi,

We are currently developing two major solutions that get booking information from some webservices and then show the results. One of the features we need to develop is image resizing. At first, I thought of using getImage.aspx, and that was it. Now i noticed that it only works with relative files.

The webservice returns the image url and we need to resize it. Since these sites have performance features, we are stripping down client-side processing to the max, and wanted some server-side for this. Is there a way to use absolute url's in getImage.aspx, or are we stuck to javascript/jquery manipulation?

At some point we may have hundreds of images.

Best Regards,
nuno

Replies

 
Nicolai Høeg Pedersen
Reply
GetImage.aspx can only handle local files. Otherwise you have to download the files to the file archive in Dynamicweb.
 
Reply
Hi Nicolai,

That is one of the problems we were trying to avoid :S

At a given point we will have thousand of images, and stress tests (based on top usage statistics on that website - current version

We are trying to use as little processing as possible. Do you have some idea of how we can optimize this issue? We can still use css to manipulate image size and as a last resource some javascript/jQuery

Nuno
 
Reply
How about dynamically downloading the images and storing them on disk?

You could implement something like GetImageFromUrl.aspx that grabs the remote image, stores it on disk (if it doesn't already exist) and then redirects to GetImage.aspx to do the resize work for you.

It still means you store the files locally, but without manual actions.

Hope this helps

Imar

 

You must be logged in to post in the forum