List all images in all subdirectories sorted by size

This shell command prints all images in current directory and all subdirectories, sorted by size, to a text file.

Note: GNU find is significantly faster.

gfind . -type f -iname "*.jpg" -ls | gsort -k7 -r -n > image-list.txt

iname switch makes it case insensitive