Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mix of portrait and landscape images #51

Open
voortexx opened this issue Apr 18, 2023 · 2 comments
Open

Mix of portrait and landscape images #51

voortexx opened this issue Apr 18, 2023 · 2 comments
Assignees

Comments

@voortexx
Copy link

voortexx commented Apr 18, 2023

Hello ! I'm a bit stuck on an implementation we want to do.
We have a mix of portrait and landscape images that we want to display with a borderRadius.
I tried several combinations of parameters but I couldn't get a correct result.

Is there a way for the component to return the dimensions of the original image that will be displayed so that I can adapt the style accordingly?

For more detail we would like to have this type of style and I'm not sure if it is possible
Portrait format: full width and adjustable height
Landscape format: fixed height (290px) and width that fits

Capture d’écran 2023-04-18 à 12 09 50

@mbgspcii mbgspcii self-assigned this Apr 18, 2023
@voortexx
Copy link
Author

Any update about this ?

@mbgspcii
Copy link
Collaborator

Hi.

We've added this task to our roadmap.

Nothing certain yet, just a few hints. In particular, retrieving the value of the image's intrinsic ratio.

I'll keep you posted as soon as we have a version. Maybe a beta version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants