Detecting Image type from raw bytes
Posted: 2014-04-11T10:30:46-07:00
In order to speed up my image processing, I use the jpeg:size hint to give the JPEG decoder more efficiency.
However, I don't want to do this blindly. How can I detect an image type from the raw bytes before calling BlobToImage?
I could write code to inspect the header, but I think Imagemagick should be able to do this too?
However, I don't want to do this blindly. How can I detect an image type from the raw bytes before calling BlobToImage?
I could write code to inspect the header, but I think Imagemagick should be able to do this too?