Re: calling mogrify from php

From: Date: Fri, 05 Jan 2001 21:52:09 +0000
Subject: Re: calling mogrify from php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32954@lists.php.net to get a copy of this message
Hi Brian and Andrew, i finally got it to work by using the full path to mogrify instead. The echo lines were just a test, the upload works fine. This is it: system("/usr/X11R6/bin/mogrify -geometry 640x480\> -filter Cubic -sharpen 3 -format jpg /gabriel/html/gabrielwickede/upload/$gallery_title/*"); Mogrify now converts all images in that directory to jpgs, sharpens and scales them. The thumbs are created the same way in a subdirectory, now only the layout is left. Both 'exec' and 'system' behave slightly strange (shell scripts for example don't run)- is there a possibility to change this via php.ini? Cheers Gabriel

« previous php.general (#32954) next »