ExifTool Forum

ExifTool => Newbies => Topic started by: nickemb on November 20, 2020, 08:47:30 PM

Title: Stdin + writing from JSON
Post by: nickemb on November 20, 2020, 08:47:30 PM
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!
Title: Re: Stdin + writing from JSON
Post by: StarGeek on November 20, 2020, 08:56:12 PM
Is there a "SourceFile" entry in the json?  If so, remove it or set it to an asterisk.
Title: Re: Stdin + writing from JSON
Post by: nickemb on November 21, 2020, 02:52:25 PM
That's what I was missing. Thank you!