Before or after? Do you use a plugin or are you uploading already sized images?
Having done both but seems there isn’t an advantage to doing it before uploading vs a plugin. Litespeed cache has image compression included. Ewwww seems to do a good job. So does Shortpixel.
What is your preferred method or plugin?