3 ms·
The script on the linked page deals with filenames with spaces while that for loop does not. Neither of them deal with filenames with \n in them, eg 'pretty s
by fragmede 13y ago
The script on the linked page deals with filenames with spaces while that for loop does not.
Neither of them deal with filenames with \n in them, eg 'pretty
sunset.jpg'
For that, you'll want to run find:
find . -name '*.jpg' -exec convert '{}' -resize "900x" -unsharp 2x0.5+0.5+0 -quality 98 `basename '{}' .jpg`_s.jpg \;