ANSI & ISO SDK has built-in support only for BMP images. You will need some conversion library (either the one in Windows or a third-party library). Image distortion caused by JPEG compression doesn't influence matching accuracy in any way.