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

Author Topic: Add support for the new image format - WebP  (Read 4163 times)

0 Members and 1 Guest are viewing this topic.

sky

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Add support for the new image format - WebP
« on: June 04, 2013, 12:44:08 pm »
I wonder if it is possible to add support for the WebP image format?

https://developers.google.com/speed/webp/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Add support for the new image format - WebP
« Reply #1 on: June 04, 2013, 12:54:15 pm »
If you write it and submit it to the author of the stb_image library (which is used by SFML), yes ;)
Laurent Gomila - SFML developer

sky

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: Add support for the new image format - WebP
« Reply #2 on: June 05, 2013, 10:40:03 pm »
Is stb_image library still developed? If so, whether they intend to support WebP soon? I doubt that I'll write that patch  :P
« Last Edit: June 05, 2013, 10:42:02 pm by sky »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Add support for the new image format - WebP
« Reply #3 on: June 06, 2013, 07:46:50 am »
Quote
Is stb_image library still developed?
I don't think so. Nothing will be done if they don't receive an external contribution.
Laurent Gomila - SFML developer

sky

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: Add support for the new image format - WebP
« Reply #4 on: June 10, 2013, 10:26:06 pm »
Is it possible that SFML will use another (better) image library in near future? For example gdal (although I'm not sure if it's good for SFML) or any other which support more image formats.
« Last Edit: June 10, 2013, 10:32:23 pm by sky »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Add support for the new image format - WebP
« Reply #5 on: June 10, 2013, 10:34:16 pm »
stb_image seems to work fine, why replace it? The alternative would be to add another library (standing to reason is libwebp itself).
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

sky

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: Add support for the new image format - WebP
« Reply #6 on: June 15, 2013, 12:04:33 am »
So generally it is possible that in the near future SFML will support WebP (for example through libwebp). If it is possible when will that be?
« Last Edit: June 15, 2013, 12:07:02 am by sky »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Add support for the new image format - WebP
« Reply #7 on: June 15, 2013, 12:26:32 am »
So generally it is possible that in the near future SFML will support WebP
I didn't say that (and I'm not the one to decide that anyway).

But how I see it: Especially for the near future, there are more important points to be achieved in SFML (just look at the GitHub issues), porting to mobile systems is an important milestone for example. On the other hand, WebP is still a rarely used format, so its support will be of little advantage for the average SFML user. Keep in mind that it requires an additional library dependency.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Add support for the new image format - WebP
« Reply #8 on: June 15, 2013, 01:05:00 am »
And nothing is preventing you from loading the image yourself and the uploading it to sftexture or sfimage.
Back to C++ gamedev with SFML in May 2023

 

anything