you may want to look at this,

http://www.narrow-gauge.co.uk/Image_Transform.tar.gz

it is a class to do image resizing. - there is thread on in in 
php.pear.dev about it.

I would not recommend doing image resizing on the fly - it is heavily 
cpu intensive, - two options would exist here - do it once and cache the 
results, or do what phpmole does - rename the image
xxxx_00x100.jpg (which is maximum 100)
and add it as an attachment.

phpmole uses the imagemagik library to to image scalling, all you do is 
pick the images you want to scale, pick the size and press the new 
icon... - the rest is done for you..

regards
alan

pp wrote:

>>Does the sizes you whant change so often that you need to do this at
>>runtime? Wouldn't it be better to create a thumbnail once and then use
>>it again and again?
>>    
>>
>
>i though about it , but I need now at least 4-5 different thumbnails
>for every image, I do not know how it will look after couple of months
>but I do not want to have plenty attachments per object.
>Besides manipulating with images is really very fast.
>
> 
>  
>
>>Anyhow, how about calling 
>>
>>$fp = mgd_open_attachment (int id, string mode)
>>
>>then use ImageCopyResized to manipulate the filehandle?
>>    
>>
>
>I tried with this function but I had errors from ImageCreateFromJpeg function.
>Of course attachment was jpeg file,. And as for now it works only with 
>opening image from url.
>
>Piotras
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to