ExifTool Forum

ExifTool => Developers => Topic started by: Viktor Nemeth on October 24, 2022, 09:48:09 AM

Title: API for newest version?
Post by: Viktor Nemeth on October 24, 2022, 09:48:09 AM
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 (https://fastapi.metacpan.org/v1/release/_search?q=Image-ExifTool%20AND%20status:latest&fields=name,status,version&size=1) 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?
Title: Re: API for newest version?
Post by: StarGeek on October 24, 2022, 11:00:25 AM
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.
Title: Re: API for newest version?
Post by: StarGeek on October 24, 2022, 11:37:38 AM
Found your Github issue (https://github.com/nemethviktor/GeoTagNinja/issues/11) on this.

Forgot to mention the hashes location
https://exiftool.org/checksums.txt
Title: Re: API for newest version?
Post by: Viktor Nemeth on October 24, 2022, 12:15:33 PM
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.