Hi Ragnar,

I had the same problem whenI wanted to display an uploaded image file. 
Unfortunately, Imagemagick isn't pre-compiled with Linux-Mandrake 8.2 distro. 
So I couldn't do it the usual way. However, I solved it in a very easy way.

Since the file was referenced in my db, and the actual file resided in ~/pix, 
I simply issued:


// The actual uploaded file was 320x380 in size and a jpeg (could be anything)

print <td align='left'><img src='/pix/{$_SESSION['rpix']}' width='40' 



Works for me . . . no need to alter/mogrify/resize. Perhaps I am missing 
something, but after struggling with resizing, I remembered that the image 
file automatically resizes itself to whatever size or shape you put it in -- 
especially jpg/jpeg and tiff.


On Thursday 06 June 2002 09:05 pm, you wrote:
> On Thu, 6 Jun 2002 23:44:06 +0200, Ragnar wrote:
> >Is there a way in php to change the size of a posted/uploaded image
> >regardless of the imagetype?
> install imagemagick and then do something like:
> exec("/path/to/mogrify -geometry ".$width."x".$height." ".$file);

Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the Holy Souls in Purgatory.

May God bless you abundantly in His love!
For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to