dartexif icon indicating copy to clipboard operation
dartexif copied to clipboard

Ability to write exif data

Open tvolkert opened this issue 4 years ago • 8 comments

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

tvolkert avatar Jun 03 '21 15:06 tvolkert

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

TiffApps avatar May 10 '22 12:05 TiffApps

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

TheLastGimbus avatar Dec 22 '22 14:12 TheLastGimbus

@TheLastGimbus It's not that simple :(

bigflood avatar Dec 22 '22 15:12 bigflood

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 avatar Dec 22 '22 16:12 tvolkert

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 😆

tvolkert avatar Dec 22 '22 16:12 tvolkert

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

  • https://dart.dev/interop/c-interop
  • https://exiftool.org/cpp_exiftool/

Shawn-sudo avatar Feb 18 '24 22:02 Shawn-sudo

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

TheLastGimbus avatar Feb 18 '24 23:02 TheLastGimbus

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.

tvolkert avatar Feb 19 '24 07:02 tvolkert