Option to make $image_size be the height (for longest_side)?

I always have trouble with portrait images not fitting on the screen and requiring users to always scroll down to see the full image (worse at low resolutions).

Making the overall 'longest_side' smaller isn't much help as currently it can only be assigned to the image width, thus meaning the landscape pictures get too small.

If I understand correctly, if it were possible to make the longest_side attribute associated with the image height, this would solve the problem and reduce down the size of portrait pictures to fit better on themes designed for lower resolution whilst keeping landscape pictures nice and big.

Hope I explained that OK..

Comments

  • trisweb Administrator
    You can do this by specifying a height in the theme image call, but it requires a little PHP call. Take a look at the printCustomSizedImage function in template-functions.php and let me know if you need more help...

    You're right though, we should make the sizing more configurable.
  • Oh, wow you answered 21 minutes after I posted! I wasn't able to access the site till now for some reason. I didn't realise there is a custom call in the php, I will see if I can piece that together myself but report back if I get confused.

    More configuration options can't hurt though!

    Thank you for all the work you're doing on this great freebie, and not to forget to mention the support! I will be donating what I can when I get the extra cash to spare.
Sign In or Register to comment.