Forum
How to check if an image is a square or a rectangle
Hi, I need add a class to an image if it's square (w=h). Is there a sensible method of doing this within a perch template? I was looking at <perch:if> plus image tag output="w/h", but it doesn't look like I can use a condition with a tag in the id field.
Any suggestions?
Thanks
I don't think there's a simple way to do that, no.