I have built a small Windows desktop application that I intend to sell and distribute copies over the internet (not as SaaS). The application in question uses ImageMagick library, which has a free licence (see here), if I understood it well. The problem is that my application uses ImageMagick components who depends of GhostScript in order to work. And the distribution of GhostScript library on commercial software requires a commercial license (see here).
Since, technically, my application uses GhostScript indirectly through ImageMagick, is it still considered "derived work"?
If instead I exclude the GhostScript library from the distribution of my app and instruct my users to download and install the free version of GhostScript, by themselves, do I still have to acquire a commercial license of GhostScript?