MacOS X Regenerate Image Thumbnails the command-line way
Jul 20th, 2008 by dmess0r
Sometimes in OSX, you get a situation where the thumbnail image for a particular image in the icon/coverflow view doesn’t get generated properly. There is a tool you can use right on the command-line to add a finder icon to an image file. sips(1), along with the “-i” flag, or the “–addIcon” getoptlong flag, works like a dream.
herecy:~ dmess0r$ sips -i LemonParty.jpg
/Users/dmess0r/LemonParty.jpg
/Users/dmess0r/LemonParty.jpg
herecy:~ dmess0r$
And if you have a ton of images to take care of, you can use sips(1) in bulk.
$ sips -i *.jpg
If your file list is so long that sips complains, you can use the for loop method
$ for image in * ; do sips -i ${image} ; done
Works pretty well for me.