Developer forum

Forum » Templates » ImageHandler - Can you resize and then crop a image?

ImageHandler - Can you resize and then crop a image?

Marie Louise Veigert
Reply

Hi,

DW version: 9.2.16


I'm using the ImageHandler (GetImage.ashx), and hoped someone could help me.
I'm having an image, which have to be resized and cropped when it's mobile.

I've tried the "&crop=0&width=xxx&height=xxx" which works, but not perfectly on mobile as desired.

So I would like to have it resized first and then crop it from center depended on some parameters.

Is it possible?

BR

Marie Louise


Replies

 
Martin Vang
Martin Vang
Reply

Hi Marie,

We do not support successive transformations. Each request is a seperate query for transforming the image.

Out of curiousity, why would you need to do this (ei. what is your concrete use-case)?

BR

Martin

 

You must be logged in to post in the forum