zoukankan      html  css  js  c++  java
  • 主流图片加载框架 ImageLoader、Glide、Picasso、Fresco 对比

    图片缓存库主页:

    Glide
    https://github.com/bumptech/glide

    fresco - An Android library for managing images and the memory they use
    https://github.com/facebook/fresco

    picasso - A powerful image downloading and caching library for Android
    http://square.github.io/picasso/
    https://github.com/square/picasso

    Android-Universal-Image-Loader - Powerful and flexible library for loading, caching and displaying images on Android.
    https://github.com/nostra13/Android-Universal-Image-Loader

    A custom image view for Android, designed for photo galleries and displaying huge images
    https://github.com/davemorrissey/subsampling-scale-image-view


    按体积进行比较:Fresco>Glide>Picasso


    总结

    Glide 和 Picasso 都是非常完美的库。Glide 加载图像以及磁盘缓存的方式都要优于 Picasso,速度更快,并且 Glide 更有利于减少 OutOfMemoryError 的发生,GIF 动画是 Glide 的杀手锏。不过Picasso 的图片质量更高。如果使用 Glide,建议将 Bitmap 格式换成 ARGB_8888、让 Glide 缓存同时缓存全尺寸和改变尺寸两种。

    Picasso 所能实现的功能 Glide 都能做到,只是所需设置不同。两者的区别是 Picasso 比 Glide 体积小很多且图像质量比 Glide 高,但Glide 的速度比 Picasso 更快,Glide 的长处是处理大型的图片流,如 gif、video,如果要制作视频类应用,Glide 当为首选。
    Fresco 可以说是综合了之前图片加载库的优点,其在5.0以下的内存优化非常好,但它的不足是体积太大,按体积进行比较:Fresco>Glide>Picasso,所以 Fresco 在图片较多的应用中更能凸显其价值,如果应用没有太多图片需求,不推荐使用 Fresco。

    ref:

    主流图片加载框架ImageLoader、Glide、Picasso、Fresco性能分析---图片加载速度比较
    http://blog.csdn.net/zivensonice/article/details/51822968

    主流图片加载框架ImageLoader、Glide、Picasso、Fresco性能分析---内存占用比较
    http://blog.csdn.net/zivensonice/article/details/51835781

    Glide、Fresco、Picasso 的背后竟然还有如此强大的图片处理库
    http://mp.weixin.qq.com/s?__biz=MzAwNzc0NjAxMg==&mid=2653390924&idx=1&sn=c15ad9e4af33c7d9bc6fa2ce91f098fc&chksm=80aa50ffb7ddd9e9544efa62355f6f0170c2c3b2f6fa34ff8061f89e5a2892df8055de557bf1#wechat_redirect&utm_source=tuicool&utm_medium=referral

    Android四大图片缓存(Imageloader,Picasso,Glide,Fresco)原理、特性对比
    http://www.cnblogs.com/linghu-java/p/5741358.html

  • 相关阅读:
    【leetcode】21-MergeTwoSortedLists
    【leetcode】20-ValidParentheses
    【c++基础】遍历目录并写入txt文件-linux
    【c++基础】字符数组和string相互转换
    【linux基础】使用命令行编译运行c++程序
    第2章 重新组织函数(4):函数对象、替换算法
    第2章 重新组织函数(3):引入解释性变量、分解临时变量和移除对参数的赋值
    第2章 重新组织函数(2):内联函数、内联临时变量和查询函数
    第2章 重新组织函数(1):提炼函数
    第1章 重构,第一个案例(3):运用多态取代switch
  • 原文地址:https://www.cnblogs.com/bluestorm/p/6829772.html
Copyright © 2011-2022 走看看