jancbeck / kirby-responsive-images

Bring responsive images to Kirby CMS
66 stars 7 forks source link

Different srcset depending on orientation #10

Open tmfsd opened 7 years ago

tmfsd commented 7 years ago

Imagine the following scenario: I have horizontally oriented (landscape) images with a max side length of 2400x1600px and vertically oriented (portrait) images with a max side length of 1600x2400px.

For the landscape images I may want two sources with 2000w and 2400w which I do not need for the portrait images, and for portrait images a might want a source with 1600w that I don't need for landscape images.

So how about the option to define different srcsets for both orientations from which the cms chooses automatically?