From the course: Android Development Essential Training: 2 User Interface Design
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Reduce file size with WebP images - Android Tutorial
From the course: Android Development Essential Training: 2 User Interface Design
Reduce file size with WebP images
- [Instructor] WebP is an image file format from Google that provides lossy compression, like JPEG, as well as transparency like PNG, but it can provide even better compression than either. This means that when you ship your app with WebP images, the final size is typically much smaller than if you used the more popular formats. Android Studio comes with a tool that allows you to convert from PNG, JPEG, BMP, and more to the new WebP format. Let's move over to Android Studio so we can update the images that we're using. In our drawable folder we have three images, the logo, the medium olive oil, and the olive branch. To convert one of these images to WebP, we right click on the image file and then we choose Convert to WebP. A dialog appears which allows us to configure how we wanted the conversion handled. By default, it's set to give us 75% encoding quality. And we also have the option to preview the images before saving.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Display image resources5m 10s
-
(Locked)
Load image resources at runtime6m 16s
-
(Locked)
Reduce file size with WebP images4m 26s
-
(Locked)
Use XML-based VectorDrawable images4m 37s
-
(Locked)
Create icons in Android Studio4m 45s
-
(Locked)
Challenge: Load a network image2m 43s
-
(Locked)
Solution: Load a network image1m 48s
-
(Locked)
-
-