Stdin + writing from JSON

Started by nickemb, November 20, 2020, 08:47:30 PM

Previous topic - Next topic

nickemb

Hello,

I'm attempting to fetch a JPEG image from an s3 bucket and then use a JSON file contents to write to that image.

I can get as far as curl -s https://[bucket-url]/test.jpeg | exiftool -artist=me - > test.jpeg. But when I try to write from the JSON file (test.json):

curl -s https://[bucket-url]/test.jpeg | exiftool -json=test.json - > test.jpeg

I get the error:
No SourceFile '-' in imported JSON database
(full path: '/path/to/current/dir/-')


I've reviewed the documentation, but I must still be missing something. Can anyone tell me what it is? Thanks for any help!

StarGeek

Is there a "SourceFile" entry in the json?  If so, remove it or set it to an asterisk.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

nickemb

That's what I was missing. Thank you!