Main Menu

API for newest version?

Started by Viktor Nemeth, October 24, 2022, 09:48:09 AM

Previous topic - Next topic

Viktor Nemeth

Hi all,

I'm after any website that has an up-to-date version of exifTool and has an API that I can query for the newest version. E.g. there is MetaCPAN's API link but the most up-to-date version there is 12.42, which is months old now, whereas exifool.org itself doesn't have an API.
Is there a similar site that is kept up-to-date and has a free api for versioning queries?

StarGeek

Not that I've heard of.

It's relatively easy to script, though. Run
exiftool -ver
to get the local version. Then check that value against
http://exiftool.org/ver.txt
for current version, via cURL or something similar.  If it's different, then download
https://exiftool.org/Image-ExifTool-$VERSION.tar.gz
or .zip for Windows or .dmg for Mac, replacing $VERSION the version from ver.txt

Somewhere around here I have posted a PowerShell script that does this for Windows.
"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

StarGeek

Found your Github issue on this.

Forgot to mention the hashes location
https://exiftool.org/checksums.txt
"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

Viktor Nemeth

Thanks! The ver.txt might be a good way forward, I'll make my changes accordingly. Well spotted re: the issue but I'll prob not do it (explained there just now why, not foolproof enough) but a workaround (also explained there, largely using your suggestion but containing the exiftool usage to the internal path) is more viable.