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.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

nickemb

That's what I was missing. Thank you!