Ok, so while writing a 2D platformer I ran into an issue I'm not quite understanding.
All of my images will load except one, no matter what format I put it in. All other images will load just fine (there also in the same directory as the other so i doubt its a rights problem).
It seems to only do this for images of this specific size, I have another image (same size) that it refuses to load also. The size is 21x15.
I attached the two images, any help?
Also here's the line of code...
if(!SprSmallStill.loadFromFile("Sprites\\Spr\\Small\\SprSmallStill.png")){return 1;}
if(!SprSmallWalk.loadFromFile("Sprites\\Spr\\Small\\SprSmallWalk.png")){return 2;}
if(!SprBigStill.loadFromFile("Sprites\\Spr\\Big\\SprBigStill.png")){return 3;}
if(!SprBigWalk.loadFromFile("Sprites\\Spr\\Big\\SprBigWalk.png")){return 4;}
//These two wont load
if(!GroundBlock.loadFromFile("Sprites\\Scenery\\Nonint\\Block.png")){return 5;}
if(!GroundPipe.loadFromFile("Sprites\\Scenery\\Nonint\\Pipe.png")){return 6;}
I all ways get this message while debugging as well
Failed to load image "Sprites\Scenery\Ground\Block.jpg". Reason : Unable to open
file
I have checked all permissions and nothing seems wrong, any format i try to put it in, it wont load, it just seems to be this size.
[attachment deleted by admin]