I had created a Quick Action from Automator to compress images through TinyPNG, but it stopped working after upgrading to Big Sur. Decided to quit Automator completely and found this Alfred Workflow as an adequate replacement.
https://www.alfredapp.com/blog/productivity/featured-workflow-compress-images-with-tinypng/