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.
more info about the class
$upload->file_auto_rename = false;
$upload->file_overwrite = true;
$upload->image_convert = 'png';
$upload->image_resize = true;
$upload->image_ratio_y = true;
$upload->image_x = 1280;
It doesnt converting the image to png too =/
It's just not working, and I'll check if olders versions are not working too.