I want a bash script which does the following:Find pictures (jpg,jpeg,JPG,JPEG) recursively from current directory downwardsGenerate a thumbnail with imagemagick's convertMove thumbnail to other directoryMy current script looks like this:for f in `find . -type f -iname *.jpg`  do  convert ./$f -resize 800x800\> ./${f%.jpg}_thumb.jpg  mv ./${f%.jpg}_thumb.jpg /home/user/thumbs/doneIt doesn't convert files (or folders with all content) which have spaces/special characters. I tried with print0 but it didn't help.
Generate and move thumbnails recursively
bash;find;imagemagick;thumbnails
You could use more advanced options like -set combined with percent escapes (namely %t to extract the filename without directory or extension) to do the resize, rename and move of each file with a single convert invocation:find . -type f -iname \*.jpg -exec convert {} -resize 800x800\> \-set filename:name '%t' '/home/user/thumbs/%[filename:name]_thumb.jpg' \;