Can anyone help me in this please (facing problem in image hight in dynamic component)

Set Cardview height to auto (-1) and image height to pixel / percent.

This the exact problem every image have different aspect ratio and i have thousands of images everyone with different size and pixels how do i know that pixle of every image

Set Cardview width -2

1 Like

You don’t need to know actually! While using Scale Picture Fit block, images will fit in the cardview as per the cardview height.

By the way, you forgot setting Cardview and Image width to match parent (-2).

1 Like

Yup but this gonna looks weird some of my image have 1:9 ratio .

Yup i forgot that in this screen shot. I had already did that.

Two simple example with image width match parent and a fixed height.

2 Likes

You can send the aia if you want.

1 Like

I made this application for a corporation soo i cant share that
But i can make another project with same situation… thank you soo much for your time just give me a minute

Sure. A demo aia would be good!

test.aia (253.0 KB)

here is the demo aia.
thank u soo much for Ur time

by mistake i added vertical arrangement not Vertical scrolling arrangement please replace that first in demo aia

Wait a while… Checking it.

1 Like

I’m not getting any images from your server. Check details.

test(1).aia (252.9 KB)

try this one i have removed airtable component now there is direct link available

Ok… Wait

1 Like

test (1).aia (253.2 KB)

1 Like

thank you soo much for your efforts but this not what iam looking for i dont want to change my image aspect ratio.
i just want automatic height for every single image with there height ratio
thank u for ur time

ok i got my solution

here u can see the image aspect ratio is not changing but showing image little zoomed as fit to width

Capture

just set the card view component to a fixed height and width and then set image height and width to 100%

ik this is not exactly iam looking for but this is better then changing image to scale to fit.

thanks @asimjib93 i got this idea from ur aia

1 Like

i got another update

by using this extension we can set image scaling to center.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.