Check image type if renamed from .png to .jpg <p>If it possible to check if the type of image if it was renamed from <code>.png</code> to <code>.jpg</code>?</p> <p><strong>I need this because when I use a resize function my website stop working if the uploaded image was renamed from .png to .jpg (I made my code to accept only .jpg images)</strong></p>