Thread tagged as: Question, Problem, Runway

Image cropping


I have added image cropping to a template as below. When an image is uploaded I can see that a cropped version is saved to the resources folder with the suffix -w97h97 as specified by my dimensions in the template.

However when I output this image it uses the original larger version of the image rather than the cropped. Is there a way to tell the template to use the cropped version?

Original file uploaded /perch/resources/team/team-member-test-crop.jpg

cropped version generated by Perch /perch/resources/team/team-member-test-crop-w97h97.jpg

My template:

<img src="<perch:content type="image" id="teamMemberImage" label="Image" bucket="team" crop="true" height="97" width="97" />" />



Lee Goodman

Lee Goodman 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

How many templates are you using? Have you set the same dimensions in all instances?

duh!!! Just checked the page function that was calling the template, I was looking at the wrong template. It works!!