[Feature] cover/contain based on landscape/portrait #406
Closed
carlos22
started this conversation in
Feature request
Replies: 3 comments 1 reply
-
I think the easiest way to accomplish this without adding more config options is to add the orientation of an image via a css class. That way you can use .frame--image-fit-contain.landscape {
object-fit: cover;
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
This will be available with the release of 0.21.0. The below setup will achieve this for you. configlayout: single
image_fit: contain custom.css.frame--image--landscape {
object-fit: cover;
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just tried it and it works like a charm :) Thank you very much. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have searched the existing feature requests to make sure this is not a duplicate request.
The feature
Hi,
first of all, very cool project!I use it for an old android tablet that I framed which is really nice. Its always landscape so those pics fit best, but the thing is I don't want to miss out on the portrait ones. So it would be nice to have the possibility to set landscape ones to cover but portrait ones to contain. Its kind of working in the split view but I just want one pic at a time.
Beta Was this translation helpful? Give feedback.
All reactions