bigflood / dartexif

Dart package to decode Exif data from tiff, jpeg and heic files
https://pub.dev/packages/exif
MIT License
30 stars 29 forks source link

Ability to write exif data #24

Open tvolkert opened 3 years ago

tvolkert commented 3 years ago

It'd be great to use this library to write exif data to a file.

TiffApps commented 2 years ago

Also to add some data to an existing EXIF, for example the date.

TheLastGimbus commented 1 year ago

Hi there! @bigflood is there any chance this can get implemented? Is it particulary hard or something?

If it maybe something kind of "do the same as for reading, but reversed", i would be happy to help

bigflood commented 1 year ago

@TheLastGimbus It's not that simple :(

tvolkert commented 1 year ago

If I had the time to look into this myself (unfortunately I don't), I'd start by looking at https://github.com/exiftool/exiftool and trying to port some of it to Dart 🙂

tvolkert commented 1 year ago

Then again, https://github.com/exiftool/exiftool/blob/master/lib/Image/ExifTool.pm is 10,000 lines of Perl code, so good luck with that 😆

Shawn-sudo commented 6 months ago

What about using dart:ffi to use an existing C++ exif tool?

TheLastGimbus commented 6 months ago

With this, it would prooobably be easier to just use Process.run('exiftool ...') altoghether...

tvolkert commented 6 months ago

I started playing around with ffi bindings for libexif, with some luck -- https://github.com/tvolkert/dart_ffi_bindings/blob/main/packages/libexif/lib/libexif.dart

But I ended up finding what I needed in package:image, so I never finished the work.