diff --git a/lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java b/lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java index c2ee26f9b5..b1612b9050 100644 --- a/lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java +++ b/lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java @@ -441,7 +441,7 @@ private static LottieResult fromZipStreamSyncInternal(ZipInpu } else if (entry.getName().contains(".json")) { com.airbnb.lottie.parser.moshi.JsonReader reader = JsonReader.of(buffer(source(inputStream))); composition = LottieCompositionFactory.fromJsonReaderSyncInternal(reader, null, false).getValue(); - } else if (entryName.contains(".png") || entryName.contains(".webp")) { + } else if (entryName.contains(".png") || entryName.contains(".webp") || entryName.contains(".jpg") || entryName.contains(".jpeg")) { String[] splitName = entryName.split("/"); String name = splitName[splitName.length - 1]; images.put(name, BitmapFactory.decodeStream(inputStream)); diff --git a/sample/src/main/assets/Tests/anim_jpg.zip b/sample/src/main/assets/Tests/anim_jpg.zip new file mode 100644 index 0000000000..941637c4bd Binary files /dev/null and b/sample/src/main/assets/Tests/anim_jpg.zip differ