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

Author Topic: What image types does SFML support?  (Read 6506 times)

0 Members and 1 Guest are viewing this topic.

INL

  • Newbie
  • *
  • Posts: 1
    • View Profile
What image types does SFML support?
« on: December 28, 2008, 06:09:20 am »
Hello, does anyone know which image types SFML supports (specifically)? And if it differs, which for opening, and which for saving?

Thanks!

INL

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
What image types does SFML support?
« Reply #1 on: December 28, 2008, 11:22:53 am »
Quote from: "http://www.sfml-dev.org/features.php"
Can load and save standard image formats : bmp, dds, jpg, png, tga, psd
Laurent Gomila - SFML developer

Kingdom of Fish

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
What image types does SFML support?
« Reply #2 on: December 28, 2008, 11:08:14 pm »
Code: [Select]
Failed to load image "media/anim(256x256)90f.png". Reason : PNG not supported: 8-bit only

There seems to be some exceptions?
[/code]

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
What image types does SFML support?
« Reply #3 on: December 28, 2008, 11:29:30 pm »
Yes, 8 bits only PNGs are an exception ;)
Laurent Gomila - SFML developer

Kingdom of Fish

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
What image types does SFML support?
« Reply #4 on: December 31, 2008, 09:52:04 pm »
Do sfml check for magicnumber or extension?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
What image types does SFML support?
« Reply #5 on: January 01, 2009, 12:07:50 pm »
Image loading is done by the SOIL library (which uses stb_image), but I think it checks the file header, not the extension.
Laurent Gomila - SFML developer

 

anything