Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
2  
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
add comment

Your Answer

 
discard

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.