Try using an absolute path to the file to check if the file can be loaded/is supported.
e.g. img.loadFromFile("C:/images/img.png")
If that works, your current working directory is not what you think it is.
If it does not, the image itself will need to be saved in a supported format.