Hello!
Is there any fast way to determine if some arbitrary image file is a png
file or a jpeg
file or none of them?
I'm pretty sure there is some way and these files probably have some sort of their own signatures and there should be some way to distinguish them.
If possible, could you also provide the names of the corresponding routines in libpng
/ libjpeg
/ boost::gil::io
.
Thank you.