The aspect ratio for portrait photos is 45 while the aspect ratio for landscape photos is 1911. Resolution needed…