chaiNNer-org / chaiNNer

A node-based image processing GUI aimed at making chaining image processing tasks easy and customizable. Born as an AI upscaling application, chaiNNer has grown into an extremely flexible and powerful programmatic image processing application.
https://chaiNNer.app
GNU General Public License v3.0
4.43k stars 277 forks source link

Execute EXIFTOOL command in a node #1790

Open vivi-gomez opened 1 year ago

vivi-gomez commented 1 year ago

I wonder if we could have a node to execute an external command to add metadata through exiftool

We would need to be able to indicate where the exiftool application is and a box for arguments.

This is an example of the exiftool command to copy all metadata tags from one file to another except the size and file format tags. exiftool -tagsFromFile SOURCEFILE -File:All:ExifIFD:PixelXDimension -File:All:ExifIFD:PixelYDimension -File:All:FileType -File:All:MimeType DESTINATIONFILE

Krzysiu commented 1 year ago

Or a node with radio button: add/remove/copy/get. 2nd and 3rd with checkbox "all". Add would take two string fields (property name, value), remove, get and copy would take only name. Get could be used to dynamically set options (like model name or anything) based on metadata values.

joeyballentine commented 1 year ago

We could probably just have the load image node output EXIF data as a specific type, and then we could have a node to combine/add exif data to an EXIF object. Will think about it more