{"id":20552975,"url":"https://github.com/zjupure/glidewebpdecoder","last_synced_at":"2025-05-16T12:12:29.972Z","repository":{"id":38849645,"uuid":"114066447","full_name":"zjupure/GlideWebpDecoder","owner":"zjupure","description":"A Glide WebpDecoder Intergration Library for decoding and displaying webp images","archived":false,"fork":false,"pushed_at":"2025-04-13T05:39:17.000Z","size":9737,"stargazers_count":775,"open_issues_count":22,"forks_count":93,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-16T12:12:23.695Z","etag":null,"topics":["android","animated-webp","glide","webp"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zjupure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-13T02:59:40.000Z","updated_at":"2025-05-09T06:23:50.000Z","dependencies_parsed_at":"2024-11-23T04:15:09.648Z","dependency_job_id":null,"html_url":"https://github.com/zjupure/GlideWebpDecoder","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjupure%2FGlideWebpDecoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjupure%2FGlideWebpDecoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjupure%2FGlideWebpDecoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjupure%2FGlideWebpDecoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zjupure","download_url":"https://codeload.github.com/zjupure/GlideWebpDecoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254527099,"owners_count":22085919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","animated-webp","glide","webp"],"created_at":"2024-11-16T02:38:44.482Z","updated_at":"2025-05-16T12:12:24.957Z","avatar_url":"https://github.com/zjupure.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## GlideWebpDecoder\n\n[![license](http://img.shields.io/badge/license-Apache2.0-brightgreen.svg?style=flat)](https://github.com/zjupure/GlideWebpDecoder/blob/master/LICENSE)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.zjupure/webpdecoder/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.zjupure/webpdecoder)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/zjupure/GlideWebpDecoder/pulls)\n\nGlideWebpDecoder is a [Glide](https://github.com/bumptech/glide) integration library for decoding and displaying webp images on Android platforms. It is based on [libwebp](https://github.com/webmproject/libwebp) project and takes some implementation from [Fresco](https://github.com/facebook/fresco) and [GlideWebpSupport](https://github.com/roths/GlideWebpSupport) as references.\n\n## Features\n\n* play animated webp images on all Android versions\n* show transparent or lossless webp images on Android devices lower than 4.2.1 (BitmapFactory support webp decode on 4.2+ android system so we have no need to handle)\n\n## Dependency Integration\n\nLibrary is available in MavenCentral. If you build with Gradle, just add the following dependencies to your `build.gradle` file.\nDifferent Glide version is corresponding to different GlideWebpDecoder due to the annotation processor compatibility. The version rule of GlideWebpDecoder is \"{major_version}.{glide_version}\".\nFor example, if you use glide 4.16.0, the corresponding version of GlideWebpDecoder should be 2.6.4.16.0\n\nLibrary will only follow the latest three version of Glide. If you use a lower version glide, please clone the project and modify it yourself.\n\n**Notice**\n\nSince Glide 4.10.0 has migrate to AndroidX, so your project must use AndroidX with Glide 4.10.0+. \n\nWebpDecoder with AndroidX support starts from version 1.6.{GLIDE_VERSION} and won't support glide version below 4.10.0 anymore.\n\n\n**Attention**\n\nSince [JCenter is being taken down on May 1 2021](https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/) and then close their service, so the library has migrate artifacts to [Maven Central](https://search.maven.org/). See issue [#76](https://github.com/zjupure/GlideWebpDecoder/issues/76) for more detail.\n\nChanges:\n* library group id has changed from `com.zlc.glide` to `com.github.zjupure`\n* add `mavenCentral()` in your `build.gradle` to fetch this library\n* only 2.0 version with glide 4.10~4.16 has been migrated and older version not support anymore\n\nIf your project use old library version below 2.0, you should upgrade the library to the latest 2.0 version.\n\n```gradle\ndef GLIDE_VERSION = \"4.16.0\"\n// webpdecoder\nimplementation \"com.github.zjupure:webpdecoder:2.6.${GLIDE_VERSION}\"\n// glide 4.10.0+\nimplementation \"com.github.bumptech.glide:glide:${GLIDE_VERSION}\"\nannotationProcessor \"com.github.bumptech.glide:compiler:${GLIDE_VERSION}\"\n```\n\nThen you are free to use GlideWebpDecoder just like using other Glide integration library.\n\n## Usage\n\nBasic usage see [Glide](https://github.com/bumptech/glide) API [documents](https://bumptech.github.io/glide/)\n\nIf you want to use `BitmapTransformation` or library [glide-transformations](https://github.com/wasabeef/glide-transformations), please use `WebpDrawableTransformation` to wrap your original `BitmapTransformation` when loading image with Glide request.\n\nCode Snippet as follow. Run sample project to see other Glide built-in transformation effect.\n\n```\nTransformation\u003cBitmap\u003e circleCrop = new CircleCrop();\nGlideApp.with(mContext)\n        .load(url)\n        .optionalTransform(circleCrop)\n        .optionalTransform(WebpDrawable.class, new WebpDrawableTransformation(circleCrop))\n        .into(imageView);\n```\n\n## Proguard\n\nThe library use native code to decode webp, so you should put the following lines to your `proguard.cfg` and keep the jni interface.\n\n```pro\n-keep public class com.bumptech.glide.integration.webp.WebpImage { *; }\n-keep public class com.bumptech.glide.integration.webp.WebpFrame { *; }\n-keep public class com.bumptech.glide.integration.webp.WebpBitmapFactory { *; }\n```\n\n## Acknowledgement\n\n* [libwebp](https://github.com/webmproject/libwebp)\n* [Fresco](https://github.com/facebook/fresco)\n* [GlideWebpSupport](https://github.com/roths/GlideWebpSupport)\n\n## License\n\nThe Library is [Apache-2.0-licensed](https://github.com/zjupure/GlideWebpDecoder/blob/master/LICENSE), part code is [MIT-licensed](https://github.com/facebook/fresco/blob/master/LICENSE) see [Fresco](https://github.com/facebook/fresco) for detail.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzjupure%2Fglidewebpdecoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzjupure%2Fglidewebpdecoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzjupure%2Fglidewebpdecoder/lists"}