WordPress Development Stack Exchange is a question and answer site for WordPress 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

is there an option or a plugin that resizes an image depending on it's orientation?

Reason for this question:

Im building an image grid and it would look even better when all images would have the same width.

share|improve this question
+1 Very basic question but seems that has never been asked here, kudos for that! ;) – brasofilo Jul 23 '12 at 0:38
Yes, thank you. I was also really impressed that nobody had asked anything like that. – Sven Jul 23 '12 at 15:59
up vote 2 down vote accepted

If you need the images to be the same width but varying heights (ie not 300 x 300 but 300 x anything) then in settings -> media add 9999 to the height of whichever image size you want to use.

You can also define your own custom thumbnail using the same principle: http://codex.wordpress.org/Function_Reference/add_image_size

[EDIT] As @brasofilo suggests, you can also use 0.

share|improve this answer
Zero has the same effect as 9999. Who knows if someday we'll have cameras with one trillion mega-pixels, maybe around WordPress 10 :) – brasofilo Jul 23 '12 at 0:36
Wow, it works great. Thanks! – Sven Jul 23 '12 at 15:59

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.