Login   Register  
PHP Classes
elePHPant
Icontem

ImageOperations php class

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Image Operations  >  All threads  >  ImageOperations php class  >  (Un) Subscribe thread alerts  
Subject:ImageOperations php class
Summary:Class is not working
Messages:4
Author:Tomas Juarez
Date:2012-01-17 17:29:07
Update:2012-03-09 04:20:46
 

  1. ImageOperations php class   Reply  
Picture of Tomas Juarez
Tomas Juarez
2012-01-17 17:29:07
Hi!
I'm trying to use the ImageOperations php class in a project.
But, it seems to be not working. There is no error, just nothing happen with images.
I'm doing this:

$img = new Image();
$img->load('imagefolder/'.$filename);
$img->resizeToWidth(316);
$img->save('imagefolder/'.$filename);

The process seems to finish well, but the image has the original size.
Could you help me to make it work?

Thanks,
Tomas

  2. Re: ImageOperations php class   Reply  
Picture of satyam
satyam
2012-03-08 04:45:54 - In reply to message 1 from Tomas Juarez
call the images files with 'www/root/home' like abs path $_SERVER['DOCUMENT_ROOT'] use this in php it will give correct abs path

  3. Re: ImageOperations php class   Reply  
Picture of Tomas Juarez
Tomas Juarez
2012-03-08 13:18:03 - In reply to message 2 from satyam
Thanks for your answer.
What you suggest is that I should use the full physical path?

  4. Re: ImageOperations php class   Reply  
Picture of satyam
satyam
2012-03-09 04:20:46 - In reply to message 3 from Tomas Juarez
yes