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
- First import image
- Resize an import image to desired size
- Export Image to desired file
above code is extracted from rchart.