
This problem doesn't even really require any knowledge of any special algorithm or anything. For what its worth, converting the file to another format may cause the answer to be lost. It just really depends on the converter and the format. You shouldn't need to convert the image at all to get the answer.