主流圖片加載框架 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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM