Jump to content

error in resizing image with image_resize.php


$php_mysql$

Recommended Posts

whenever i try to upload image of 1 to 6mb of size and try to resize it by using the  image_resize.php i get this error

 

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 19008 bytes) in C:\wamp\www\nescript\image_resize.php on line 17

 

and on line 17 i see this

 

$this->image = imagecreatefromjpeg($filename);

 

what could be the reason?

<?PHPSensei To The Rescue

 

  • Option 1:As darkfreaks mentioned, however this issue can be sometimes related to server restrictions. I know this from experience

 

 

 

So What Can I Do Sensei?

 

Just as Darkfreaks mentioned, you can access your php.ini files and change these settings.

 

memory_limit = 32M
upload_max_filesize = 4M
post_max_size = 20M

 

 

i_heart_my_sensei_t_shirt-p235846181907006226qmkd_400.jpg

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.