find jpg or png

C++
find file/path -type f -name '*.PNG' -o -name '*.JPG'
Source

Also in C++: