K
K
kirawa2019-01-24 15:11:45
Android
kirawa, 2019-01-24 15:11:45

Is it possible to compress a photo to a certain size in memory?

For example, there is an original photo of 1mb and I want it to be 300kb in size. Maybe there is something similar? Maybe there are libraries?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ivanessence, 2019-01-24
@ivanessence

Of course, there are libraries for image compression, for example:
1) https://github.com/facebookincubator/spectrum
2) https://github.com/zetbaitsu/Compressor
And there are even standard Android tools, dig towards Bitmap , BitmapFactory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question