flutter_native_image icon indicating copy to clipboard operation
flutter_native_image copied to clipboard

getImageProperties should include date taken

Open kinex opened this issue 7 years ago • 7 comments

It would be nice to get also image date/time information in ImageProperties (specifically the date image was taken). This is needed e.g. for displaying images in date/time order.

kinex avatar Jan 04 '19 08:01 kinex

Feature seconded

thedejifab avatar Jan 06 '19 21:01 thedejifab

I think this feature depends on having the correct exif information. You can grab these by using the https://github.com/brendan-duncan/image library. I am not sure how I'd add this feature without reading out exif information, which basically is already done by the library mentioned.

edit: There might be some issues as mentioned in https://github.com/btastic/flutter_native_image/issues/31

btastic avatar Jan 06 '19 21:01 btastic

Well, your library is reading exif information too :) See FlutterNativeImagePlugin.java, line 115. It would be very easy to add there much more exif data, including "date taken".

The only reason for using this library is to avoid using https://github.com/brendan-duncan/image. It uses all too much memory to be usable in Android/iOS.

kinex avatar Jan 06 '19 22:01 kinex

Oh right, this was even a recent addition. Thanks for pointing this out.

btastic avatar Jan 06 '19 22:01 btastic

Added with https://github.com/btastic/flutter_native_image/commit/18369e6afd6cd6dcfe908d6c889015381601c5c9

There is now a "datetime" property on the ImageProperties which will have the TAG_DATETIME_ORIGINAL as a string. You can then parse it the way you want.

btastic avatar May 15 '19 22:05 btastic

I had to undo the changes cause of issues on iOS. Will have to investigate further.

btastic avatar May 17 '19 11:05 btastic

Any news on a potential reintroduction?

aloisdeniel avatar Apr 29 '20 08:04 aloisdeniel