Hello everyone,
I’m running a script that handles external image and video files via the WWW method, is there any way to get image/video aspect ration through this method?
Thank you.
Hello everyone,
I’m running a script that handles external image and video files via the WWW method, is there any way to get image/video aspect ration through this method?
Thank you.
Once you opened the file, you can read the resolution of the image or the video, then you can compute the aspect ratio:
aspectRatio = width/height.
I know how to calculate aspect ratio I just don’t know the function that returns file width/height that works for both images and videos…
Thank You,