I'm trying this piece of code to resize jpg files inside folder recursively larger than 1 MB.
find . -type f -size +1M -name "*.jpg" | xargs convert -resize 1000x1000\> -verbose Getting error message (which breaks batch after 15-20 iterations)
xargs: convert: terminated by signal 9 How to solve this issue?
convertwhich I don't think it handles correctly. Are you sure this is doing what you want and not stomping over a good chunk of your original files?