running imageoptim for specified files would be necessary. according to the imageoptim-cli doc, find command  is a solution.