TwicPics / components

A Web component library that brings the power of TwicPics to your favorite web framework.
MIT License
53 stars 2 forks source link

Mix of portrait and landscape images #51

Open voortexx opened 1 year ago

voortexx commented 1 year ago

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
voortexx commented 1 year ago

Any update about this ?

mbgspcii commented 1 year ago

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.