Android Picasso: Difference between revisions
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
implementation 'com.squareup.picasso:picasso:2.71828' | implementation 'com.squareup.picasso:picasso:2.71828' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Comparison= | |||
Other libraries are available such as | Other libraries are available such as | ||
*Glide, good for memory management | *Glide, good for memory management | ||
*Fresco, | *Fresco, | ||
<table> | |||
<thead> | |||
<tr> | |||
<th>Criterion</th> | |||
<th><img src="/wp-content/uploads/2020/07/Picasso_logo.png" width="165px"></th> | |||
<th><img src="/wp-content/uploads/2020/07/Glide_logo.png" width="165px"></th> | |||
<th><img src="/wp-content/uploads/2020/07/Fresco_logo.png" width="165px"></th> | |||
</tr> | |||
</thead> | |||
<tbody> | |||
<tr> | |||
<td class="weight">Size</td> | |||
<td>121 Kb/td><p></p> | |||
</td><td>440 Kb</td> | |||
<td>500 kb</td> | |||
</tr> | |||
<tr> | |||
<td class="weight">Convenience of use</td> | |||
<td>high</td> | |||
<td>high</td> | |||
<td>middle</td> | |||
</tr> | |||
<tr> | |||
<td class="weight">Web Download Speed</td> | |||
<td>high</td> | |||
<td>slightly lower due to lengthy caching processing</td> | |||
<td>high</td> | |||
</tr> | |||
<tr> | |||
<td class="weight">Cache Download Speed</td> | |||
<td>average</td> | |||
<td>high</td> | |||
<td>high</td> | |||
</tr> | |||
<tr> | |||
<td class="weight">Built-in Transformation Features</td> | |||
<td>basic set of operations</td> | |||
<td>basic set plus rounding</td> | |||
<td>wide range of transformation capabilities, but with limitations</td> | |||
</tr> | |||
<tr> | |||
<td class="weight">Additional tools</td> | |||
<td>Absent.</td> | |||
<td>Loading a frame from video as a picture and GIF, using any type of model, a flexible API with the ability to connect any network stack.</td> | |||
<td>Saving images not in Java Heap, but in ashmem heap, the ability to crop images around any point, resize JPEG using native resources, support for Progressive JPEG images.</td> | |||
</tr> | |||
</tbody> | |||
</table> |
Revision as of 01:47, 25 January 2021
Introduction
Picasso is a library for managing images on Android and is very simple to use
Picasso.with(getContext()).load(sampleURI).into(imageView)
- Flexible Source Locations
- Caching
- Image Trnasformations
- Error Handling
- Logging
- Request Management
To add it to our projects we simply add it to the gradle. At the time this was
implementation 'com.squareup.picasso:picasso:2.71828'
Comparison
Other libraries are available such as
- Glide, good for memory management
- Fresco,
Criterion | <img src="/wp-content/uploads/2020/07/Picasso_logo.png" width="165px"> | <img src="/wp-content/uploads/2020/07/Glide_logo.png" width="165px"> | <img src="/wp-content/uploads/2020/07/Fresco_logo.png" width="165px"> |
---|---|---|---|
Size | 121 Kb/td> | 440 Kb | 500 kb |
Convenience of use | high | high | middle |
Web Download Speed | high | slightly lower due to lengthy caching processing | high |
Cache Download Speed | average | high | high |
Built-in Transformation Features | basic set of operations | basic set plus rounding | wide range of transformation capabilities, but with limitations |
Additional tools | Absent. | Loading a frame from video as a picture and GIF, using any type of model, a flexible API with the ability to connect any network stack. | Saving images not in Java Heap, but in ashmem heap, the ability to crop images around any point, resize JPEG using native resources, support for Progressive JPEG images. |