Forum

Thread tagged as: Question, Problem, Blog

Cropping images focussed on height

Hello,

I have a lot of images that are being cropped. I find that when the width of the original image is really wide, it is cropped in that same ratio. Here is a screenshot to demonstrate what I mean: https://imgur.com/a/n2Vyn

How can I get all the images to crop at the same height and cut out alot of the width to fit? I hope my question is clear.

Mike

EDIT: This is my template:

<img src="<perch:blog id="image" type="image" width="360" height="240" crop="true" />" alt="" />

The images always get the same width, but vary in height because of the original ratio.

Mike Hendriks

Mike Hendriks 0 points

  • 3 years ago

You could just take out the width parameter. Then all images over 240px high will be resized to their original proportions. Note: If the original image is below the dimensions set in the template then they will be ignored.

Jon