Measure and optimize bitmap size using Glide or Picasso

preview_player
Показать описание
In this video, I'll show you how to measure the size of the bitmaps that are stored in the memory and how to reduce their size to possibly get rid of some OutOfMemory errors.

The article I mention at the end:

0:00 Intro
1:10 Common misconceptions
1:33 Measure bitmap size
2:30 Calculate bitmap size
2:50 Bitmap size in Picasso
3:46 Bitmap size in Glide
4:24 Decrease bitmap size in Picasso
4:58 Is Glide behaviour always optimal?
6:38 Bitmap quality
8:27 Final thoughts
Рекомендации по теме
Комментарии
Автор

Great job!!! Please continue creating new videos 😄

mingato
Автор

Love the way you categorize each section and explain it beautifully <3

Автор

That was really well explained, thanks

ronaldosanches
Автор

I want to see more and more videos from you.

youbaraj.p
Автор

Do you know NDK well? I think tutorials for that would be very popular and very neeeded.

SourceCodeDeleted
Автор

How can i handle bitmap created inside app no server communication ??

krishpatel-knpp
Автор

Hello there,
I am making an image compression app which will take image from gallery and compress it and save it in the I did the compression programmatically it But I want to shoe the image size both before and after compression.... I tried a code but it just gives output as 00... So if you can help that would be great!!
Btw good explanation...

avithakur
Автор

Any trades off to use picasso vs glide? Sounds like glide is better for memory? When to pick one over the other?

JeffreyLiu
Автор

Let the cat speak! :P
Pytanie. Jeśli użyję fit() w Picasso, dla View > Bitmap, to będzie się on zachowywał się tak samo jak Glide z centerInside(), czy bez?

nikrn