In Views, how do you get the dimensions of an image?

I can see options for file size and ID, but there doesn't seem to be away to the image dimensions (e.g. width and height).

Thanks for any help that can be offered!

Comments

dawehner’s picture

Drupal core does not store this information by default, so the only thing you could do is to look it up in the file before the rendering.

In views terms this would require you to write a custom field handler.