Forum

Thread tagged as: Question, Problem, Suggestions

Random Number Generator

I'm trying to get perch to crop a gallery of images at different heights to a achieve a sort of image jigsaw effect....

<perch:content type="image" id="image" label="Image" width="140" crop="true" />

Because all the images in the assets are the standard size, so the gallery is symmetrical.

Stephen Wild

Stephen Wild 3 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You might be better to resize them dynamically on the front end.

So I take it there is no way of generating a random number using perch

Drew McLellan

Drew McLellan 2638 points
Perch Support

There's no way of resizing an image to a random size.