Get correct image details, like height and width

Hello koders,

I’m creating a messaging application I’m creating images send and receive function for it.

In messenger when we send screenshot it like first image.

And when its from camera its like 2nd images.

I have used taifuns meta data extension but theres problem like when i send screenshot it shows height 1600 and width 720

And when use pictures it varies…

For screenshot I’m making card view height 280px and width 140px and It’s look Great

But when i use others pictures it looks not good

So i want a system that a can get what’s user sending image or screenshots. And height widths of it.

Thanks a lot for reading this long post. Waiting for your replys.

Regards,
Morsalin

Yes i did.


1 Like

Thanks.
But not worked. First i need to get image height and width then set card view according to image height and width.

image

Aix link

Or you can use this block also

thanks ,
i already used it. i need something which give me accurate aspect ratio to use that in card view to look good. when i use screenshot in taifuns extension it show perfect data like 1600x720 which i can use but few minutes ago i tried a image from my camera and it shows height 3261 and width 2448. and it various .

I dont know any solution.

But I believe this block will work perfectly

Avijit Das thanks man. its working perfectly.

1 Like

And what that set height to -1 means. I mean whats that -1 :thinking:

1 Like

-1 mean wrap content and -2 mean fill_parent or match_parent

2 Likes

Thanks man, good to have that to my knowledge cloud… :slightly_smiling_face:

2 Likes

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