我正在开发一个需要从尿液中加载多个图片的应用程序。我把所有的图片都保存在Firebase存储中。目前我正在使用一个压缩器来减少图片的大小。
newImageFile=new File(uri1.getPath());
try {
compressedImageFile = new Compressor(ProductAdd.this)
.compressToBitmap(newImageFile);
} catch (IOException e) {
e.printStackTrace();
baos = new ByteArrayOutputStream();
compressedImageFile.compress(Bitmap.CompressFormat.JPEG, 100, baos);
thumbData1 = baos.toByteArray();
我使用Glide从URL中加载图片
Glide.with(context).load(imgUrl).into(holder.cutImg);
我想知道是否有什么方法可以提高加载图片的速度。也许可以用一种特定的格式来存储它们。