tinypng

From their README

request an API key.

Use the File Action, File Filter, or External Triggers to compress PNG, JPEG, and WebP images via TinyPNG.

Alfred File Action for TinyPNG Compression

– Download Workflow

On Alfred 4 use alternative link