• Hot
  • Top
  • New
1
votes

You have ... votes left in this category for this week!

approved

Add ‘portrait’ and ‘landscape’ image detection JavaScript

Dave Hilditch shared this feature

October 25, 2017

By using the External Images plugin, you forego the ability to ‘crop’ images.

This means, if you have a mix of portrait and landscape images then your product archive pages can end up looking messy.

I want to add some JavaScript and an option to the plugin to detect portrait and landscape images on archive pages, add the relevant CSS class to them and then include CSS which will automatically ensure images use the same amount of space, regardless of whether they are portrait or landscape.

 

2 Comments

  1. Roland
    October 26, 2017 @ 12:55 pm

    Nice! When you use External Images plugin it’s difficult to get the productnames on the same line. With potrait and landscape images the landscape images then overlap

    Reply

  2. veikko p.
    November 30, 2017 @ 7:18 pm

    Gave my vote! I think this functionality would serve a lot of users – as I would imagine all having to deal with this somehow who are using the plugin. I believe you would also gain quite nicely some competetive advantage over the few competing plugins with this functionality.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *