mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 11:26:01 +03:00
Merge pull request #3423 from vector-im/feature/bma/compress_thumbnail
Compress thumbnail: change Jpeg quality from 100 to 80 (#3396)
This commit is contained in:
commit
c3a754604f
2 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,7 @@ internal class ThumbnailExtractor @Inject constructor(
|
|||
mediaMetadataRetriever.setDataSource(context, attachment.queryUri)
|
||||
mediaMetadataRetriever.frameAtTime?.let { thumbnail ->
|
||||
val outputStream = ByteArrayOutputStream()
|
||||
thumbnail.compress(Bitmap.CompressFormat.JPEG, 100, outputStream)
|
||||
thumbnail.compress(Bitmap.CompressFormat.JPEG, 80, outputStream)
|
||||
val thumbnailWidth = thumbnail.width
|
||||
val thumbnailHeight = thumbnail.height
|
||||
val thumbnailSize = outputStream.size()
|
||||
|
|
1
newsfragment/3396.feature
Normal file
1
newsfragment/3396.feature
Normal file
|
@ -0,0 +1 @@
|
|||
Compress thumbnail: change Jpeg quality from 100 to 80
|
Loading…
Reference in a new issue