Anastasiyav
4 years agoChannel Surfer
Is there any way to get Image size from url?
Is there any way to check the image size? For example, in some cases I getting images with 1px*1px size. And I need to check it. If it's, I need to use the failedBitmap uri for the image. I tried ...
- 4 years ago
Found a solution.
It has turned out easier than I thought.
Need to check the bitmapWidth/bitmapHeight when loadStatus for Poster is "ready".
Observe loadStatus for Poster and then
sub LoadStatus_Changed(event as dynamic) status = event.GetData() if (status = "ready") then if (m.top.bitmapWidth <= 1.5 and m.top.failedBitmapUri <> invalid and m.top.failedBitmapUri <> "") then m.top.uri = m.top.failedBitmapUri end if end if end sub