Couldn’t be easier!
Simply:
1. Install ImageMagick
2. Setup the needed environment variables:
export MAGICK_HOME="/opt/local/var/ImageMagick-6.5.3" export PATH="/opt/local/var/ImageMagick-6.5.3/bin:$PATH" export DYLD_LIBRARY_PATH="/opt/local/var/ImageMagick-6.5.3/lib"
3. Resize:
bash-3.2$ /opt/local/bin/mogrify -resize 525x700 image.jpg
(NOTE: Overwrites image (does not create a new image))
Related posts:
- Switches and the Mac OS X Boot Loader
- Web Application Load Balancing and In Memory Session Sharing with Tomcat and Apache
- flickr.photos.search through the Flickr API with PHP + REST + curl
- February in Luxembourg…