increase the resolution of local images for a bit better quality

This commit is contained in:
tibbi 2018-02-11 23:26:18 +01:00
parent 0b9b1b7f1a
commit 1be6264cf4
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
val bitmap = MediaStore.Images.Media.getBitmap(context.contentResolver, photoUri)
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()
scaledPhoto.recycle()
return scaledSizePhotoData