The only configuration needed is to get the API Key from the TinyJPG website (you get 500 compressions/month for free) and to set it as the site property APIKey.
The public action ShrinkImage receives a binary file (image) and returns the compressed image, as well as the sizes for comparison and the number of compressions made for controlling.