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

WEBP image format support #1338

Closed
wants to merge 19 commits into from
Closed

Conversation

MajorMurphy
Copy link
Contributor

@MajorMurphy MajorMurphy commented Jan 26, 2024

I've included libwebp 07b7185, which closes #274

Supports decoding and encoding 24-bit and 32-bit RGB and ARGB images.

Encoding by default is lossless. However lossy encoding is possible by calling WEBPImageFormat::setQuality(bool shouldBeLossless, float newQuality). The quality value range is 0 - 1.0, same as JPEGImageFormat::setQuality.

Tested building with

  • MSVC 2022
  • Android 13 SDK
  • gcc 12.3.0 (Ubuntu 23.04)
  • XCode 12.4

@MajorMurphy
Copy link
Contributor Author

Closing due to discovering the availability of this module: https://github.com/FigBug/Gin/tree/master/modules/gin_webp

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

Successfully merging this pull request may close these issues.

1 participant