Page 1 of 1

Re: Is this possible with imagemagick

Posted: 2007-03-04T02:50:04-07:00
by Bonzo
This code when it is run will resize and OVEWRIGHT all the jpg images in the folder:

Code: Select all

<?php
exec("/usr/local/bin/mogrify -size 45x *.jpg" );
?>
Problems:
1/ On my server I have to use an FTP program to CHMOD all the images to 777 first - you may or may not have this problem.

2/ You would need to run it in each folder - if you knew a bit about php you could write some code to do this automaticaly.

I do not want to get the blame for someone overwiting there images by accident so again THIS WILL OVERWRITE THE ORIGINAL IMAGES.

Re: Is this possible with imagemagick

Posted: 2007-03-04T19:34:55-07:00
by anthony
See the mogrify alturnatives in IM Examples
http://www.imagemagick.org/Usage/basics/#mogrify_not