jancbeck/kirby-responsive-images

Different srcset depending on orientation

Opened this issue · 0 comments

tmfsd commented

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?