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.
Please be courteous on this forum. You wouldn't have to ask your question if you had read the documentation, or had a better grasp of PHP basics.
The thread I linked to answered your question. It says: "The class creates one picture per call to the process() function."
The file upload.php is a test file. You are not supposed to use it as-is in your project. The test file creates two images from one uploaded file, for the sake of the example. Thus, it calls process() twice.
To have only one image created, simply call process() once. You can find example for this everywhere in the forum, the FAQ, and other pages.Reply
The thread I linked to answered your question. It says: "The class creates one picture per call to the process() function."
The file upload.php is a test file. You are not supposed to use it as-is in your project. The test file creates two images from one uploaded file, for the sake of the example. Thus, it calls process() twice.
To have only one image created, simply call process() once. You can find example for this everywhere in the forum, the FAQ, and other pages.