I have image size, but I can't find any field for image height and with in Views.

I need to display orginal image height and weight, something like: Resolution: 800px x 600px.

  • 4
    I think you're going to need the File entity module for that. Then add a relationship from the image field to the file entity, and you should be able to extract the image dimensions. Per this issue, though, there's no support for filters currently. You could of course just do it in a preprocess function though if that's too much overhead
    – Clive
    Nov 28, 2012 at 10:26
  • 1
    I suspect people are struggling to answer the question because it's not very clear. If you want to display height and width values along with an image then probably the easiest way is to use a custom theme function. Are you OK with writing PHP? Sep 5, 2014 at 9:38
  • 1
    Also see this small module, which may be what you want: drupal.org/project/image_wh_formatter Sep 5, 2014 at 9:42

1 Answer 1


Have you created an image style for the image (what used to be ImageCache in Drupal 6 now in Core)? Configuration -> Media -> Image Styles

If not perhaps you should because this will give you much more control over the size of an image without having to worry about theming the size directly. Set up a preset for the image display in question and you can choose the size it should be generated at for a particular use.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.