After installing imagemagick you can resize images:
convert -size 125x125 /path/to/image.jpg -resize 125x125 /path/to/image.jpg
Ofcourse you can do this in php by executing the shell command using the exec() function.
Related posts:
- php/linux – performing an http post the easy way
- linux using the cat command to append files together
- linux i discovered umask and sgid for default file/directory permissions
- CronJobs – Creating CronJobs with Crontab in Linux
- a backup system – for the poor and lazy
Tags: convert, debian, imagemagick