I wish to get a list of all files in a project folder [recursively] that are image files. Unfortunately Google was unable to help me here.
If possible, the use of current system's mimetypes is preferred, eg all files that have a mime matching the glob
image/*; so that any example could be easily extended for
Additionally, commands that don't need to do expensive operations on every file in the entire directory are preferred as I might be trying to use this on some pretty huge volumes.
Note: A potential work around I have considered is fetching the list of file extensions from the mimetypes data and doing a
find for these extensions, this is however less preferred due to the file extensions of the target files I'm wanting to locate may be missing, double loaded, etc.
Edit: @KasiyA pointed out a thread exemplifying searching for files by extension, which I consider pretty trivial and not exactly what I'm looking for; I've edited the title to reflect that I'm looking specifically for mimetype based results.