Closed vanniktech closed 6 years ago
I see. How about the EXIF data of the photo? Are they empty?
Can I get them easily without creating anything?
If you use BitmapPhoto
you can use the [bitmap's api method](https://developer.android.com/reference/android/graphics/Bitmap.html#getWidth()).
If from a file check step 3 with ExifInterface.TAG_IMAGE_WIDTH.
Will that work?
Alternatively you can use BitmapFactory to just decode the bounds of the image (specifically by using BitmapFactory.Options.inJustDecodeBounds
. This is a pretty fast operation.
We will consider adding the image size to the result in the future.
The Exif solution would probably work. However that step, parsing the file could be saved altogether since Fotoapparat should know the size of the image already when the picture was taken. Also it feels like a good fit for the PhotoResult class.
Agree that Photo
could also have the dimens
Oh okay didn't know that. Then I'll leave it up to you whether you want to add support for that or not. Using ExifInterface on the consuming side is fine too.
It would be cool if the width & height of the image would be available in the PhotoResult class.