1

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.

2
  • +1 Very basic question but seems that has never been asked here, kudos for that! ;)
    – brasofilo
    Commented Jul 23, 2012 at 0:38
  • Yes, thank you. I was also really impressed that nobody had asked anything like that.
    – Sven
    Commented Jul 23, 2012 at 15:59

1 Answer 1

2

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.

1
  • 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
    Commented Jul 23, 2012 at 0:36

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.