title: php proportionally resize and cut a circle out of a square image
body: <p>I have many square images with different sizes, and I want to first resize them so they are inside a 150pixel area (so the images are not distorted, so since most images are not exactly the same size on both height and width one of the sides would be smaller (proportionally).</p>
  
  <p>Then once I do that I need to cut a perfect circle out of them and apply a 10pixel colored border.</p>
  
  <p>Now how on earth could I even start this?</p>