Proportional Scaler (Image resize size caliculation, image ratio)



Ex:
  step 1) Original Width = 900px;

  step 2) Original Height = 300px;

  step 3) Ratio = Original Width/Original Height


  Step 4) Want Height from New Width (700px)

a) New Height = New Width / Ratio

OR

  Step 4) Want Width from New Height (250px)

a) New Width = New Height * Ratio

Comments

Popular posts from this blog

AIOMgr: Preparing flush failed with VERR_NOT_SUPPORTED, disabling async flushes

Create Virtual Host in IIS Server

The model type is invalid. please select an item from the list ( ASP.Net MVC)