exiftool high CPU spikes and sometimes hangs in SlickStack
- This topic is empty.
-
AuthorPosts
-
DorisGuest
in the
top
we can see on our server, sometimes big CPU spikes and stuck there for several hours like hanging from this utility.exiftool -recurse -overwrite_original -EXIF= -ext jpg,jpeg /var/www/html
source file
https://github.com/littlebizzy/slickstack/blob/master/bash/ss-optimize-files.txtJohnGuestCPU load sometimes like 60% from this process…
NancyGuestSeems like this has been an issue for 10+ years, not only Linux but also Windows so not sure exactly why that’s still happening.
https://exiftool.org/forum/index.php?topic=1415.0
also
RalphGuestI have seen some solutions using
imagemagick
but they seem too aggressive. Like you might delete all kinds of metadata besides only the EXIF stuff.But, a few other options:
For example
exiv2
andmat2
might work.AmberGuesthttps://0xacab.org/jvoisin/mat2
https://github.com/Exiv2/exiv2
IT seems like exiv2 has a lot more documentation and bigger community but hard to find many examples of CLI commands for recursive
RuthGuesthttps://dev.exiv2.org/boards/3/topics/950
Exiv2 can operate on all files in a directory at once, but it doesn’t recurse through a directory tree. You need to call exiv2 in a loop over all your directories, once for all directories (or twice, once to rename the file and once to adjust the timestamp).
10 years old not sure if still true
AlanGuestHello all, we commented out
exiftool
process for now:https://github.com/littlebizzy/slickstack/commit/9aae7b9c8cf06282c9fa86b756bc388e5c191bbd
LindaGuestthe typical story of Unix utilities lmao
thanklessly maintained by some random dude in Nebraska, nobody contributes and then one day something goes wrong and everyone is shocked
-
AuthorPosts