increase the resolution of local images for a bit better quality
This commit is contained in:
parent
0b9b1b7f1a
commit
1be6264cf4
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||||
val bitmap = MediaStore.Images.Media.getBitmap(context.contentResolver, photoUri)
|
val bitmap = MediaStore.Images.Media.getBitmap(context.contentResolver, photoUri)
|
||||||
|
|
||||||
val thumbnailSize = context.getPhotoThumbnailSize()
|
val thumbnailSize = context.getPhotoThumbnailSize()
|
||||||
val scaledPhoto = Bitmap.createScaledBitmap(bitmap, thumbnailSize, thumbnailSize, false)
|
val scaledPhoto = Bitmap.createScaledBitmap(bitmap, thumbnailSize * 2, thumbnailSize * 2, false)
|
||||||
val scaledSizePhotoData = scaledPhoto.getByteArray()
|
val scaledSizePhotoData = scaledPhoto.getByteArray()
|
||||||
scaledPhoto.recycle()
|
scaledPhoto.recycle()
|
||||||
return scaledSizePhotoData
|
return scaledSizePhotoData
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue