Welcome Guest, Not a member yet? Register   Sign In
Image Resizing Problem
#1

[eluser]Vijusoft[/eluser]
Hey i have image resizing problem.
My servers memory limit is 42 MB.
But it gives error while uploading image greater than 1 MB.

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 12288 bytes) in C:\xampp\htdocs\marwadibandhan\system\libraries\Image_lib.php on line 1143


Please , Can anybody help me out?
#2

[eluser]pistolPete[/eluser]
[quote author="Vijusoft" date="1235495295"]But it gives error while uploading image greater than 1 MB.[/quote]

I don't think the problem is the filesize but the image resolution!
What are the image dimension in pixels when you get the error?
#3

[eluser]M4rc0[/eluser]
Hi!

I have the same problem.
Before the image resizing I get a fatal error :

Quote:[client 127.0.0.1] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 13184 bytes)

Yes, the resolution is very big. Normal/low resolutions work fine.
So should I increase the memory size in php.ini ? Is that the only way?

Because ~30M is a lot already, how can it use so much for 1 image ?
Later I will work with multiple resizes, imagine how much memory this will use! I'm concerned.

Have you fixed your problem Vijusoft ?




Theme © iAndrew 2016 - Forum software by © MyBB