Closed zeallat closed 5 years ago
Edit: Fresco need initialize() in Application class, so i should check https://github.com/zjupure/GlideWebpDecoder
Currently, Glide doesn't support .webp extensions. ~we'll migrate to Fresco for support .webp extensions.~
Also, can you provide a sample image of .webp? (if that image is a private image, please send to my mail, pyxis@uzuki.live
Reference: https://github.com/bumptech/glide/issues/571
Check your .webp image is working in zoom mode with this version.
implementation 'com.github.WindSekirun:NaraeImagePicker:cf782651ac'
Let me know if any error has happened.
Note for future: GlideWebpDecoder library use libwebp
to decode webp image. so final apk size will increase about 788.2KB.
If you try to reduce final apk size, consider APK Split
@WindSekirun Thanks for works. ClassCastException has occurred.
2018-12-05 15:11:53.335 10533-10533/com.ecubelabs.fm E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.ecubelabs.fm, PID: 10533
java.lang.ClassCastException: com.ecubelabs.core.util.GlideRequests cannot be cast to pyxis.uzuki.live.naraeimagepicker.module.GlideRequests
at pyxis.uzuki.live.naraeimagepicker.module.GlideApp.with(GlideApp.java:88)
at pyxis.uzuki.live.naraeimagepicker.fragment.adapter.ImageAdapter$ListHolder.bind(ImageAdapter.kt:45)
at pyxis.uzuki.live.naraeimagepicker.fragment.adapter.ImageAdapter.onBindViewHolder(ImageAdapter.kt:31)
at pyxis.uzuki.live.naraeimagepicker.fragment.adapter.ImageAdapter.onBindViewHolder(ImageAdapter.kt:27)
at androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6781)
This seems to be a problem with using the GlideModule in the subproject. Hold on for a minute, I'll publish a new snapshot build.
Resolved on remove using AppGlideModule in library projects commit.
Snapshot will be available after 5 minutes.
implementation 'com.github.WindSekirun:NaraeImagePicker:976c8dad19'
mm... I think .webp was supported correctly before. Maybe it was just image file was wrong...?
Remain current implementation for future.
Released as 1.8.0. Thanks!