Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working with Views 3 and Drupal 7 and created a view to display a list of images from a given content type in a slideshow. For layout reasons, images in portrait format don't work. Is there any way to filter for "width > height"?

share|improve this question

One simple solution
in given content type, add a CCK (select list) field having option "width > height". select this field when the image is landscape. then in views add this filter too.

by doing this, only images that are "width > height" will be shown

share|improve this answer
thanks for your reply. this would be a solution i am not really happy with. someone would need to go through all the existing content and select this field. it is possible to select a filter for given widths or heights in views. i just thought i've missed the part where you can have the filter working for both fields, since the values are already stored in the database if you upload an image. – rugar Nov 9 '12 at 15:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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