Page 1 of 1

ASSET SERVER IMAGE RESIZE QUESTION

Posted: Mon Aug 12, 2013 1:57 pm
by cbj
I am trying to get the asset server to give me a resized image that is 400px wide and 400px high while maintaining the aspect ratio. My problem is that when I pass resize-width-amount=400&resize-height-amount=400 to the asset server and depending on the aspect ratio there is still the possibility one of height or width being bigger than 400. Is it possible for me to achieve a resize that forces both width and height to fall within specified bound while maintaining the aspect ratio?

Thanking you in advance!

Re: ASSET SERVER IMAGE RESIZE QUESTION

Posted: Mon Aug 12, 2013 8:38 pm
by phillipuniverse
No, this is currently unsupported. It sounds like what you're basically asking is for the width and height parameters to operate more like 'max-width=400&max-height=400&maintain-aspect-ratio=true'.

We would love to see a pull request for this feature!

Re: ASSET SERVER IMAGE RESIZE QUESTION

Posted: Tue Aug 13, 2013 1:22 am
by cbj
Yes something along the lines of 'max-width=400&max-height=400&maintain-aspect-ratio=true' is exactly what am looking for. Thanks for the clarification, am not very familiar how the whole request mechanism works but would love to initiate this one

Re: ASSET SERVER IMAGE RESIZE QUESTION

Posted: Fri Sep 18, 2015 2:56 am
by joshuacanlas
Hello.

Is this issue are now supported by Broadleaf?

Thanks.