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

Reduce file size with WebP images - Android Tutorial

From the course: Android Development Essential Training: 2 User Interface Design

Start my 1-month free trial

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.…

Contents