(find: *.png: No such file or directory) terminal
Did you specify the name of the directory containing the files: where the placeholder &lt;directoryname&gt; is? Is there at least one file ending in .png in that directory?

Try with the first part of the command:

find &lt;directoryname&gt; -name \*.png


to see if you get the list of files.