I have 300k+ jpg files in the same directory. Files are like:
/covers
0788862281217.jpg
0788863155104.jpg
7888311516341.jpg
7888370920479.jpg
7888497074277.jpg
I need to batch resize saving the resized images in the same directory with a prefix th_ in filename like
th_0788862281217.jpg
th_0788863155104.jpg
th_7888311516341.jpg
th_7888370920479.jpg
th_7888497074277.jpg
all inside /covers
The following works but it overwrites the source files
$ find thumbs -type f -name "*.jpg" | xargs mogrify -resize 75x75
so I have to copy all the images into a new dir (/covers/thumbs) and then run the batch and then move all the files back to /covers