Since face detector works only with jpg files, how can you make it work with all formats? I am letting user select any image from sd card so image can be in any format. Than i use decodefile method as mentioned in this post to scale the image down: Since face detector works only with jpg files,