Results 1 to 3 of 3
Jun 24, 2013, 09:44 #1
- Join Date
- Jun 2007
- 0 Post(s)
- 0 Thread(s)
Build square thumbnail by cutting off l/r slices
I intend to build square thumbnails by cutting off parts of the image (given the original format is not square). Currently I am using GD for image manipulation.
Let me give you an example:
User image upload is 600x400px. I resize it to 60x40 using imagecopyresampled.
My question is: How can I cut off 10px from the left and 10px from the right, resulting in a nice 40x40px thumbnail?
Thank you very much for your help,