Is there any quick way to determine if any arbitrary image file is a png or jpeg file, or none of them?
I am sure there is some way, and these files probably have their own signatures, and there is some way to distinguish them.
If possible, you can also specify the names of the corresponding routines in libpng / libjpeg / boost::gil::io .
c ++ image png jpeg
Yippie-ki-yay
source share