barasher / go-exiftool

Golang wrapper for Exiftool : extract as much metadata as possible (EXIF, ...) from files (pictures, pdf, office documents, ...)
GNU General Public License v3.0
250 stars 44 forks source link

"NoPrintConversion" functional option #24

Closed Kjeldgaard closed 3 years ago

Kjeldgaard commented 3 years ago

New function which adds initial arguments to be parsed to exiftool.

barasher commented 3 years ago

Hi @Kjeldgaard, thanks for the PR !

This feature is bothering me:

Exiftool supports so many parameters that it will be really hard to test and filter.

But since I consider that this feature might interest some users, let's do this this way:

Kjeldgaard commented 3 years ago

Hi barasher,

Thanks for your comment. I totalky understand your concerns about this change, as it could break go-exiftool functionality. Since it is actually only the "-n" argument I need, I have come to the conclusion that it would probably be better to achieve this similarly to the charset implementation. What do you think?

barasher commented 3 years ago

I've taken a look at exiftool's -n parameter : I agree with you, a dedicated "functional option" seems to be the best option. Deal ! Can you handle it ?

Kjeldgaard commented 3 years ago

I've made a new dedicated function for 'No Print Conversion'. What do you think?

barasher commented 3 years ago

Just a little godoc fix and that will be perdect :)

Kjeldgaard commented 3 years ago

Didn't know that was a thing :) It should be fixed now.

barasher commented 3 years ago

Thanks a lot @Kjeldgaard , I'll merge this feature tomorrow and release a new version

Kjeldgaard commented 3 years ago

You're welcome. Glad I could contribute to go-exiftool.