Skip to content

Commit 7b42953

Browse files
authored
Create README.md
1 parent 260cfbd commit 7b42953

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Android WebP Image Loading Sample
2+
3+
This sample app demonstrates different aspects of working with WebP Image format on Android and allows comparing image quality and load times between PNG/JPG and WebP.
4+
5+
It is meant as a companion to the **[Optimizing Android App Size By Leveraging the WebP Image Format](https://medium.com/@domen.lanisnik/optimizing-android-app-size-by-leveraging-the-webp-image-format-87189f8c7603)** blog post.
6+
7+
Included are the following functionalities:
8+
- Compare image quality and file size differences between original PNG image, losslessly converted WebP image and lossy converted WebP image
9+
- Compare image quality and file size differences between JPG and converted WebP images
10+
- Supports zooming images to view more details
11+
- View how to load WebP images in Compose from a URL using Coil or Glide
12+
- Benchmark image loading times between JPG and WebP image
13+
14+
The project contains all the PNG, JPG and WebP images. WebP images were converted from the original 100% quality PNG and JPG image. JPG images with different quality were compressed using [ImageMagick](https://imagemagick.org/index.php).
15+
16+
You can download the source code and build the app yourself or download the prepared APK file.
17+
18+
**Previews**
19+
20+
<p float="left">
21+
<img src="/previews/preview1_intro.png" width="19%" />
22+
<img src="/previews/preview2_png.png" width="19%" />
23+
<img src="/previews/preview3_jpg.png" width="19%" />
24+
<img src="/previews/preview4_jpg.png" width="19%" />
25+
<img src="/previews/preview5_remote.png" width="19%" />
26+
<img src="/previews/preview6_benchmark.png" width="19%" />
27+
<img src="/previews/preview7_benchmark.png" width="19%" />
28+
</p>

0 commit comments

Comments
 (0)