We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Set multiple resize dimensions for images

Halley Carleton October 19, 2014 by Halley Carleton

Nevermind, {{ transform }} works for picture element and srcset.

It would be great if the file fieldtype allowed you to set multiple sizes of the same image, resulting in have multiple sizes of one image for use with the picture element or srcset.

I'm thinking something like this:

  type: file
  destination: /assets/img/
  allowed: [jpg]
      height: 150
      width: 300
      quality: 60
      upsize: false
      height: 300
      width: 600
      quality: 75
      upsize: false
      height: 500
      width: 1000
      quality: 80
      upsize: false

Then this would result in the following files: image_name_small.jpg image_name_medium.jpg image_name_large.jpg

Answered by Jason Varga!
>>>>>>> Answered <<<<<<<
2 Replies