Source available but with a pricing for commercial use seems to be the most sustainable way for open source (pun intended) though.
gifski [0] for example is a successful open-source project doing that.
* https://github.com/ImageOptim/gifski
And this is why open source means source available, look at the license. There are infinite variations between free software and classic source available.