imagemagick

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

imagemagick

Post by s.dot »

anyone know of a premade script using php/imagemagick for making thumbnails?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
wtf
Forum Contributor
Posts: 331
Joined: Thu Nov 03, 2005 5:27 pm

Post 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.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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");  
?>
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

actually it did work. it just didn't go to the specified location, it instead overwrote the original image
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply