Forum

Thread tagged as: Question, Problem

Using Cropped Image in Perch Content Custom

How do you use the cropped/resized version of an image when using perch_content_custom?

The main template declares width, height and crop=true but when using perch_content_custom the original image is rendered if a different template is passed in as an argument.

Also if skip-template is used the array returned includes a reference to the original image and not the resized one.

Creative Monster

Creative Monster 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

The template you're using to display the image needs to use the same dimensions as used is the master template you used when selecting the image.

I had the dimensions the same but did not include crop="true", it seems this is also required.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, width, height and crop.