Resize image using GD2

There are various library for manipulating image,one of them is GD library.
In this post i quickly show how to resize an image or generate thumbnail of image using GD2.

Basic steps as follows

  1. First import image
  2. Resize an import image to desired size
  3. Export Image to desired file

above code is extracted from rchart.

Leave a reply:

Your email address will not be published.

Site Footer