glide
glide copied to clipboard
An image loading and caching library for Android focused on smooth scrolling
Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored
Glide do not load an url whether one letter or the whole protocol string is capitalized, i.e.: Https://foo.com/image123.jpg using version 4.13.2 ``` Glide.with(context) .load(url) .diskCacheStrategy(DiskCacheStrategy.ALL) .into(imgView) ```
## Description This PR fixes the Issue https://github.com/bumptech/glide/issues/4819 NullPointerException on String.hashCode() call ## Motivation and Context Required because there are a lot of crashs.
This isn't in any state to be released, but it might be the minimal amount of code to get feedback on the implementation. There's lots of work left to do...
Tips: English description is below this comment! 一、问题 在使用glide的过程中发现默认设置的RGB_565没有生效,而此配置可以使图片内存减少一半,分析源码并尝试了修复方案,只是心里还有些疑问,是我其他配置有问题还是这本身是个bug? 二、分析glide内创建图片核心流程 1、业务调用 Glide.with(MainActivity.this).load("xxxx").format(DecodeFormat.PREFER_RGB_565).into(imageView); 3、创建图片核心流程 glide创建bitmap主要经过6个流程: 业务调用接口,传入参数 读取原始图片信息:getDimensions方法获取原始图片信息,如图片尺寸、类型等; 计算目标图片尺寸、解码配置:calculateScaling计算合适的目标图片尺寸,calculateConfig计算合适的目标图片解码配置; 预创建目标图片bitmap:从bitmapPool里取可以复用的bitmap,如果没有则新创建一个,这一步中有申请内存,但是像素数据并没有加载原始图片内容; 设置inbitmap:如上3中创建的bitmap放到options.inBitmap中; 加载原始图片到目标bitmap:根据inBitmap可复用的特性,decodeStream后,将原始图片的内容数据写入并返回,返回的和inBitmap是同一对象; 三、核心流程拆解 1、业务调用后传入参数 前面的流程冗长,我们直接看传入到DownSample.decodeFromWrappedStreams()的参数: ` private Bitmap decodeFromWrappedStreams( ImageReader imageReader, BitmapFactory.Options...
It'd be great if Glide can support Jetpack compose with a composable like `GlideImage` **Expected Usage (minimum)** ```kotlin setContent { GlideImage(url) } ````
Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored
**Description:** It looks like there is a uncatched null pointer exception in the hash code function. `com.bumptech.glide.load.engine.EngineKey.hashCode(EngineKey.java:63)` **Environment** `implementation 'com.onesignal:OneSignal:4.7.3'` **Steps to Reproduce Issue:** I can't recreate the bug since...
I really need the Glide plugin for react-native. There is only one react-native-fast-image, but it is no longer supported and does not work on new versions of the platform. Are...
I have a new question: We know that Glide will compress the image according to the ImageView size, this is a great feature and I need it. But I want...