Thread tagged as: Discussion

What exactly does the "output" option for "Image field type" mean?

I'm trying to find a solution and during my reading, I found mention of the output option for use with image field types. At first I thought it was simply the URL to the image and it was outputting that into the "src" attribute in the HTML...but then I realized quickly that that wouldn't work if you added any of those other options Or would it? I don't I placed output="w" in an img tag inside a template to see what it might do. And neither on the page, nor in the actual code did I see anything pop up and I did populate this area with an image from the assets panel. So where exactly is this information output and what is it used for? Thanks!

John Meise

John Meise 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

It changes what the tag outputs. By default, the tag will output the image path. You can set it to w for the width, h for the height, tag to create a complete HTML <img /> tag and so on.

oooooooooooooooooooooooooooooh. I see, I see. It literally changes what the src attribute reads in the HTML. I was overthinking that one. Thanks!