Apologies if the has been asked before.

Is there a way I can get a dump of media items in wikidata or wikimedia commons

Basically I'm looking for a list of *.png|jpg type files that occur in wiki type sites

Any pointers would be appreciated!