Tries to compress the given file to a jpg.
Returns true when the given file is an image that can be converted