Page 1 of 1

imagemagick

Posted: Sat Mar 04, 2006 8:41 pm
by s.dot
anyone know of a premade script using php/imagemagick for making thumbnails?

Posted: Sat Mar 04, 2006 9:41 pm
by wtf

Code: Select all

<?php
exec("/usr/local/bin/mogrify +profile \"*\" -resize 320x240! /home/path/to/source /home/path/to/thumb"); 
?>
"*" will get rid of any profile info stored by digicam, photoshop or whatever.

Make sure that mogrify is in path. Don't remember what the command is to find a path to the program on unix.

Posted: Sat Mar 04, 2006 11:22 pm
by s.dot
that particular command is not working for me

Code: Select all

<?php 
exec("/usr/local/bin/mogrify +profile \"*\" -resize 320x240! /home/scott/public_html/images/logo.gif /home/scott/public_html/th_test.gif");  
?>

Posted: Sat Mar 04, 2006 11:34 pm
by s.dot
actually it did work. it just didn't go to the specified location, it instead overwrote the original image