Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WebP support to AppImage #773

Open
s09bQ5 opened this issue Nov 13, 2023 · 2 comments
Open

Add WebP support to AppImage #773

s09bQ5 opened this issue Nov 13, 2023 · 2 comments

Comments

@s09bQ5
Copy link
Collaborator

s09bQ5 commented Nov 13, 2023

At least one Person (@barbeque-squared) uses WebP images with USDX. The DLLs for the Windows build support WebP, the AppImage for Linux currently does not.

  • Extend dl.sh and tasks.sh to download and build libwebp.
  • Configure SDL2_image to use that library.
@s09bQ5
Copy link
Collaborator Author

s09bQ5 commented Nov 25, 2023

I just noticed that FFmpeg contains decoders for many image formats (jpeg, png, webp, tiff, bmp, pnm, pcx, tga, jpeg 2000, xpm, xbm, ...). Maybe we should try to use these if SDL2_image fails or has been disabled at build time. Images are treated as videos with a single frame.

@barbeque-squared
Copy link
Member

That's an interesting idea. Is FFmpeg something that USDX will always need? And if so, would it make sense to try and see if we can drop the SDL2_image dependency altogether? I don't know if/how this will work with stuff like transparency in menu icons, or maybe there's performance considerations to prefer SDL2_image.
(now watch as people start (ab?)using this to set mp3's with embedded coverart as the #COVER or something...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants