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.
You need to call process() only once. You can remove the first call to process().
After the first call to process(), the variables are reinitialized, and the second call to process() will "upload" the picture without any resizing.
So here in your code, you store the resized JPEG image on disk, and then you secondly get untreated image in the database. This is why the second image appears large; in fact, it is your original image that you get in the second call to process().Reply
After the first call to process(), the variables are reinitialized, and the second call to process() will "upload" the picture without any resizing.
So here in your code, you store the resized JPEG image on disk, and then you secondly get untreated image in the database. This is why the second image appears large; in fact, it is your original image that you get in the second call to process().