I'm working on a website that uses a image slider which requires image widths and heights to be set to function properly. Normally this isn't a problem, except on this website the images will be different sizes (particularly different widths). I would like to avoid needing to manually enter widths for every image.
I came across a method for Modx Evolution and PhX for pulling widths and heights (
http://modxrules.com/articles/how-to-output-the-height-and-width-of-an-image-tv), I just haven't had any luck adapting it to Modx Revolution.
Here is what one of my output strings looks like, which is part of an MIGX Tpl:
[[+image:notempty=`<a class="thickbox" href="[[+url]]?height=575&width=480&inlineId=hiddenModalContent&modal=true"><img src="[[+image]]" width="[[imageWidth]]" height="[[imageHeight]]" alt="" /></a>`]]
The snippet calls in the width and height position go the respective snippets similar to the Evo example I linked.
I would like them to work with the Default output selected, but I would be fine using the Image output if it's needed.
Thanks for any help!