From the course: Android Development Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Convert image files to WEBP format

Convert image files to WEBP format - Android Tutorial

From the course: Android Development Tips

Convert image files to WEBP format

- [Narrator] When you package your Android applications for deployment, you create an APK file and you'll always want to keep that APK file as small as possible. One of the biggest corporates in expanding the size of the APK file is image files. When you use unoptimized JPG files or PNG files, sometimes they can be much larger than you really need and you could optimize those just like you do for the Web, but there's an even better way in Android. You can instead convert those files to a format called WebP. This format, created by Google, retains the resolution; the clarity of the image, but creates a much smaller file and in Android Studio 2.3 and later, it's very easy to convert your existing image files to the WebP format. I'll demonstrate in this simple application that uses a number of image files. From the opening screen, when I click Run Code in this application, I'm taken to a listing and right now, it's only showing four rows, but I've provided a lot more image files that you…

Contents