Compress thumbnail: change Jpeg quality from 100 to 80 (#3396)
This commit is contained in:
parent
d2fd652fb5
commit
302e29831e
|
@ -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()
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Compress thumbnail: change Jpeg quality from 100 to 80
|
Loading…
Reference in New Issue