You can (and most likely should) still use a OSI-approved license if you want, such as AGPL/GPLv3, while providing the possibility of case-to-case commercial licenses.
gifski [0] for example is a successful open-source project doing that.
gifski [0] for example is a successful open-source project doing that.
* https://github.com/ImageOptim/gifski