ANSI & ISO SDK has built-in support only for BMP and raw (GRAY) images. You will need to implement conversion by your own or use some (third-party) conversion library.