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.
Apparently, the MIME type is wrongly detected: MIME type detected as image/png; charset=binary by Fileinfo PECL extension
Try to deactivate the PECL Fileinfo detection (works from v 0.28):
$handle->mime_fileinfo = false;
This should deactivate Fileinfo, and use other techniques to detect the MIME type. If the detected MIME type is an image one, image processing should happen.
MIME type detected as image/png; charset=binary by Fileinfo PECL extension
Try to deactivate the PECL Fileinfo detection (works from v 0.28):
This should deactivate Fileinfo, and use other techniques to detect the MIME type. If the detected MIME type is an image one, image processing should happen.
Let me know.