Page 1 of 3

Thumbnail generator

Posted: Wed Feb 04, 2009 10:21 pm
by suhasiniketha
Hi
Please help me

I'm unable to create Thumnail for Images greater than 1.3 MB
with dimensions 1990px width and 2200px height

please help me anyone.....................please

Re: Thumbnail generator

Posted: Wed Feb 04, 2009 10:27 pm
by Benjamin
What is the memory limit set at in php.ini?

Re: Thumbnail generator

Posted: Wed Feb 04, 2009 10:28 pm
by suhasiniketha
it's showing 12M

Re: Thumbnail generator

Posted: Wed Feb 04, 2009 10:34 pm
by Benjamin
For the page processing thumbnails, you'll more than likely need to increase it to 50MB or more. You can check your error log to verify that the script was hitting the 12MB memory limit. Remember that jpg images are compressed. When decompressed they can take up to 10 times more memory.

You can increase the limit on a per page basis by using ini_set();

Re: Thumbnail generator

Posted: Wed Feb 04, 2009 10:40 pm
by suhasiniketha
Ok Thank you

where we have to place this ini_set();.

In page where we are showing thumbnails?

Re: Thumbnail generator

Posted: Wed Feb 04, 2009 10:41 pm
by Benjamin
Yes, have a look at the manual for usage: http://us2.php.net/manual/en/function.ini-set.php

Re: Thumbnail generator

Posted: Wed Feb 04, 2009 10:48 pm
by suhasiniketha
Thank you....
now I have to set memory limit?

Re: Thumbnail generator

Posted: Wed Feb 04, 2009 10:52 pm
by Benjamin
Yes, that is correct.

Re: Thumbnail generator

Posted: Wed Feb 04, 2009 11:19 pm
by suhasiniketha
Its not working.
Still Im notable to see thumbnail

Re: Thumbnail generator

Posted: Wed Feb 04, 2009 11:59 pm
by Benjamin
What are the errors? Have you checked your error log? Enabled error reporting and display errors?

Re: Thumbnail generator

Posted: Thu Feb 05, 2009 12:04 am
by suhasiniketha
I didnt get any error log
where to find this?

Re: Thumbnail generator

Posted: Thu Feb 05, 2009 12:12 am
by Benjamin
/var/log/httpd/error_log or /var/log/apache/error_log or /var/log/error_log

You might be able to view it via CPanel as well.

Best bet is to turn on error reporting:

Code: Select all

 
error_reporting(E_ALL);
ini_set("display_errors", 1);
 

Re: Thumbnail generator

Posted: Thu Feb 05, 2009 12:24 am
by suhasiniketha
ok
but it didnt displayed any result

Re: Thumbnail generator

Posted: Thu Feb 05, 2009 12:42 am
by suhasiniketha
shall i send code ?

Re: Thumbnail generator

Posted: Thu Feb 05, 2009 12:56 am
by Benjamin
You put the code I posted at the top of the file and no errors were displayed? Yes, please post your code.