I am trying to code an uploader which would manipulate the uploaded images, and invalid jpg/jpeg files seem to be quite a big problem while manipulating.
I did some research, and the one method that I could find was in the manual, for imagecreate() function, but that requires a special library installed (net something I believe).
I am wondering, if there is any way I could do a check on the image (other than mime types, I believe they do the check with the extension, which can easily be changed) to see if this is really a valid jpg/jpeg or not.
Thanks in advance 🙂