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, Colin! Now I try to execute the following algorithm: 1) the maximum size of a file is 300 kilobytes 2) the maximum sizes of a file is 1024*768 pixels If the user has prepared in advance a file according to these rules, recalculation should not be made. And at me on an input volume of a file of 290 kilobyte, after upload I have 150 kilobytes. How it is possible to avoid recalculation?
Second question. How I can forbid to upload the files which are distinct from JPEG? For example, if the user takes in head to upload GIF, and I do not want it? Whether it is possible to include $handle-> image_convert = ' jpg '; whether it will influence loading JPEG-files?
Now I try to execute the following algorithm:
1) the maximum size of a file is 300 kilobytes
2) the maximum sizes of a file is 1024*768 pixels
If the user has prepared in advance a file according to these rules, recalculation should not be made. And at me on an input volume of a file of 290 kilobyte, after upload I have 150 kilobytes. How it is possible to avoid recalculation?
Second question.
How I can forbid to upload the files which are distinct from JPEG? For example, if the user takes in head to upload GIF, and I do not want it? Whether it is possible to include $handle-> image_convert = ' jpg '; whether it will influence loading JPEG-files?
Thanks a lot. Regards