title: How to round off image in PHP with transparency?
body: <p>I have a scenario where I have square images e.g. 500x500</p>
  
  <p>I need to generate a rounded corner image with transparent borders. I am able to achieve this using Image Moo library (in CodeIgniter framework) however the library adds white color instead of making the border part transparent.</p>
  
  <p>I checked another piece of code and it's doing same, by filling the border part with white color in order to round off corners.</p>
  
  <p>Is there any way I can round off corners while maintaining transparency of borders?</p>
  
  <p>Thanks a lot!</p>