I am trying to write a game in VS Code, but whenever I try to open an image using:
hero.image = pygame.image.load("Character.jpeg")
(The images are in the game folder)
I get varied error messages. One computer it says "pygame.error: Couldn't open Character.png" and on another, it says something to do with incorrect sRGB profile. I have tried running the program on different computers, tried it with different images in different image formats, .gif, .png, and .jpeg.
Thank you for your answers, it turns out the problem was that the folder was stored on a cloud location, and the computer cannot do it from there. The way I fixed it was making a copy of the image on the actual PC, I didn't need to actually use that version of the image, but as long as it is there the program works.
Can't Open image files in pygame