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.
I've used the class several times on my localhost, so i'm sure that everything works fine there, and that all the needed libraries are installed. Now with a new code, where i upload and image and process it 3 times something odd happens. The process goes like this: - Upload the image - Create a thumbnail (width of 60 px if the image is portrait, or height of 60 px if it's landscape), this works just fine. - Then, create a medium image (320 width if portrait, or 240 if landscape) this uses the default image width / height of 150 px, which is wrong. - Then copy the image without resizing, this works ok.
Now with a new code, where i upload and image and process it 3 times something odd happens.
The process goes like this:
- Upload the image
- Create a thumbnail (width of 60 px if the image is portrait, or height of 60 px if it's landscape), this works just fine.
- Then, create a medium image (320 width if portrait, or 240 if landscape) this uses the default image width / height of 150 px, which is wrong.
- Then copy the image without resizing, this works ok.
Here's the piece of code that doesn't work:
Any ideas?
If that is not the problem, can you paste here the full log for the three processes?