You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To replace our colored rectangles with random images from our image-set, we need a way to match the aspect ratio, then scale the image to the appropriate size for the ad rectangle on the page.
If we can identify a standard set of ad image ratios, then we can pre-select images for the image-set to match them...
The text was updated successfully, but these errors were encountered:
Generally there are two kinds of them: banner-like (vertical & horizontal) and photo-like (landscape & portrait)
to simplify it below is the ratio of the longer side to the shorter side
for photo-like ads most of the ratio are close to 4:3 , I think we can use 4:3 images for ads whose ratio are between 1 - 1.5.
a few ads have the ratio around 2:1
banner-like ads are more various... but many of their ratios are around 3.2 - 4, which is about 32:9
and some are in very strange shapes like 8:1, for those maybe we just ignore.
to concludes, I propose we prepare images 4 (4:3, 3:4, 32:9 and 9:32) to 6 (previous 4 plus 2:1 and 1:2) different ratios
To replace our colored rectangles with random images from our image-set, we need a way to match the aspect ratio, then scale the image to the appropriate size for the ad rectangle on the page.
If we can identify a standard set of ad image ratios, then we can pre-select images for the image-set to match them...
The text was updated successfully, but these errors were encountered: