Skip to content

Commit 75598a7

Browse files
authored
Create README.md
1 parent 443929f commit 75598a7

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
=# AVIF/HEIF coil plugin for Android 24+
2+
3+
Library eliminates many bugs from standart AVIF decoder, supports HDR and ICC profiles.
4+
Correctly handles ICC, and color profiles and HDR images.
5+
Fully supports HDR images, 10, 12 bit. Preprocess image in tile to increase speed.
6+
Extremly fast in decoding large HDR images or just large images.
7+
The most features AVIF, HEIF library in android.
8+
Supported decoding in all necessary pixel formats in Android and avoids android decoding bugs.
9+
10+
# Usage example
11+
12+
Just add to image loader heif decoder factory and use it as image loader in coil
13+
14+
```kotlin
15+
val imageLoader = ImageLoader.Builder(context)
16+
.components {
17+
add(HeifDecoder.Factory())
18+
}
19+
.build()
20+
```
21+
22+
# Add Jitpack repository
23+
24+
```groovy
25+
repositories {
26+
maven { url "https://jitpack.io" }
27+
}
28+
```
29+
30+
```groovy
31+
implementation 'com.github.awxkee:avif-coder-coil:1.4.2' // or any version above picker from release tags
32+
```
33+
34+
# Disclaimer
35+
36+
## AVIF
37+
38+
AVIF is the next step in image optimization based on the AV1 video codec. It is standardized by the
39+
Alliance for Open Media. AVIF offers more compression gains than other image formats such as JPEG
40+
and WebP. Our and other studies have shown that, depending on the content, encoding settings, and
41+
quality target, you can save up to 50% versus JPEG or 20% versus WebP images. The advanced image
42+
encoding feature of AVIF brings codec and container support for HDR and wide color gamut images,
43+
film grain synthesis, and progressive decoding. AVIF support has improved significantly since Chrome
44+
M85 implemented AVIF support last summer.

0 commit comments

Comments
 (0)