bcamp1973 Posted November 6, 2006 Share Posted November 6, 2006 our CMS provides the height and width of the video being embedded on the page. my problem is that i need to calculate whether the video is widescreen (16x9) or standard (4x3). based on it's height and width which may not be standard sizes. The math for this is a bit above my head? Anyone have any hints? Link to comment https://forums.phpfreaks.com/topic/26357-determine-aspect-ratio-based-on-height-x-width/ Share on other sites More sharing options...
banachec_00 Posted November 6, 2006 Share Posted November 6, 2006 Try taking the width and dividing it by the height provided to you.A widescreen video ratio should be 1.777, standard 1.333. Hope this helps. Link to comment https://forums.phpfreaks.com/topic/26357-determine-aspect-ratio-based-on-height-x-width/#findComment-120532 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.