Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Problems loading Images  (Read 3845 times)

0 Members and 1 Guest are viewing this topic.

Pwndja

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Problems loading Images
« on: September 17, 2007, 03:48:28 am »
I figured out a solution to loading some images.
The problem: I was trying trying to load a .jpg image in my program and i kept getting this run time error "Fail to load image '{directory}/image.jpg'"
The solution: I had forgotten that I originally saved the image as a png, and then just changed the extension to .jpg for testing if sfml would load different images for me... So since i had changed the image via just changing the extention sfml could not read the image because it was not formated to be a .jpg, so I just opened the image up in paint.NET and saved as the image as a .jpg and that did the trick.

Now my program loads the .jpg fine...

Hope this helps anyone who might of had the same problem.

Srejv

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Problems loading Images
« Reply #1 on: November 01, 2007, 02:34:43 pm »
Yes, I'm having the same problem. I've tried to resave it as another format in photoshop but it still gives me the error (and I have all the extlibs dlls in the folder, etc...). :< I've even tried making my own image and load it but it still doesn't work.

It worked with SFML-1.1 but then I updated to the SVN version because glu.h stopped working. :(