I've got an image file with a jpg name but in reality it's a psd file with an embedded jpg. I know how to recognize a jpg. But how do I do that with a psd file? I don't need to know any details about the psd file. Just like I can do with a jpg
if StartOfPicture.MidB(6,4) = "JFIF" or StartOfPicture.MidB(6,4) = "Exif" then 'is jpg
I want to make sure that the file can be displayed. As usual plugin solutions are welcome.