Developer forum

Forum » CMS - Standard features » Get image orginal size with GetImage.ashx?

Get image orginal size with GetImage.ashx?

Johan Lang
Johan Lang
Reply

Hi!

How do I get an image with it's orginal size from BackOfiice with GetImage.ashx?

Url to get an uploaded image in BackOffice works if the width and height are specified like:

 hostname/Admin/Public/GetImage.ashx?width=180&height=180&image=/Files/System/FormUploads/folder//img.jpg (will get the image with width 180px and heigt 180px)

I have tried with:

hostname/Admin/Public/GetImage.ashx?image=/Files/System/FormUploads/folder//img.jpg   ...but it dosent work.

Best regrds

Johan

 

 


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

it's impossible, width or height must be specified to use the feature, but you can use something like '&Width=99999&Height=99999&DoNotUpscale=1' in parameters as workaround.

BR, Oleg QA

 

You must be logged in to post in the forum