class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
Hi, i'm not able to process images bigger than 100/120KByets. I've read about server memory issues, but my memory setting limit is 128M Chan you help me?
This is the log system information - class version : 0.27 - GD version : 2.0 - supported image types : png jpg gif bmp - open_basedir : no restriction - language : en_GB source is an uploaded file - upload OK - file name OK - MIME type detected as image/jpeg by UNIX file() command - source variables file_src_name : 226k.jpg file_src_name_body : 226k file_src_name_ext : jpg file_src_pathname : /tmp/phpcnD5u3 file_src_mime : image/jpeg file_src_size : 231884 (max= 33554432) file_src_error : 0 - source file is an image image_src_x : 2000 image_src_y : 2791 image_src_pixels : 5582000 image_src_type : jpg image_src_bits : 8 process file to test/ - file size OK - file mime OK : image/jpeg - file name safe format - destination variables file_dst_path : test/ file_dst_name_body : 226k file_dst_name_ext : jpg - image operation, keep extension - checking for auto_rename - destination file details file_dst_name : 226k.jpg file_dst_pathname : test/226k.jpg - 226k.jpg doesn't exist already - image resizing or conversion wanted process file to test/ - file size OK - file mime OK : image/jpeg - file name safe format - destination variables file_dst_path : test/ file_dst_name_body : 226k file_dst_name_ext : jpg - image operation, keep extension - checking for auto_rename - destination file details file_dst_name : 226k.jpg file_dst_pathname : test/226k.jpg - 226k.jpg doesn't exist already - image resizing or conversion wanted cleanup - delete temp file /tmp/phpcnD5u3Reply
The things to test are: - does it work for smaller images? If yes, you have a memory issue with larger files. - does it work for the large images if you increase the memory? If yes, you have a memory issue with larger files.Reply
i'm not able to process images bigger than 100/120KByets.
I've read about server memory issues, but my memory setting limit is 128M
Chan you help me?
This is the log
system information
- class version : 0.27
- GD version : 2.0
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
- MIME type detected as image/jpeg by UNIX file() command
- source variables
file_src_name : 226k.jpg
file_src_name_body : 226k
file_src_name_ext : jpg
file_src_pathname : /tmp/phpcnD5u3
file_src_mime : image/jpeg
file_src_size : 231884 (max= 33554432)
file_src_error : 0
- source file is an image
image_src_x : 2000
image_src_y : 2791
image_src_pixels : 5582000
image_src_type : jpg
image_src_bits : 8
process file to test/
- file size OK
- file mime OK : image/jpeg
- file name safe format
- destination variables
file_dst_path : test/
file_dst_name_body : 226k
file_dst_name_ext : jpg
- image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : 226k.jpg
file_dst_pathname : test/226k.jpg
- 226k.jpg doesn't exist already
- image resizing or conversion wanted
process file to test/
- file size OK
- file mime OK : image/jpeg
- file name safe format
- destination variables
file_dst_path : test/
file_dst_name_body : 226k
file_dst_name_ext : jpg
- image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : 226k.jpg
file_dst_pathname : test/226k.jpg
- 226k.jpg doesn't exist already
- image resizing or conversion wanted
cleanup
- delete temp file /tmp/phpcnD5u3
Check out this post.
Basically, if it works with smaller resolutions, it means that you are running out of memory for the lasrger images.
image_src_x : 2000
image_src_y : 2791
image_src_pixels : 5582000
image_src_bits : 8
So, 5.582.000x8 = 44.656.000 bits
My PHP memory limit is 128MB... it should be enough, isn't it?
Thanks again!
The things to test are:
- does it work for smaller images? If yes, you have a memory issue with larger files.
- does it work for the large images if you increase the memory? If yes, you have a memory issue with larger files.
"file not uploaded to the wanted location Error: Error in creating JPEG image from source."
Thanks again!