camelot
camelot copied to clipboard
On license compatibility
Camelot uses ghostscript (a GPLv3 licensed project, which is a wrapper on top of ghostscript, an AGPL licensed project) to convert PDFs to PNGs in order to do line recognition and table detection in the Lattice flavor. Back when Camelot was created, we used ghostscript because it was the best solution out there for converting a PDF to a PNG, and we didn't know about how Camelot's license (MIT) is incompatible with ghostscript's license (GPL and AGPL). Since then I've read that if you extend/use a GPL licensed project, you have to release the thing you build with the GPL license too. I want to get some clarity of where the distinction lies wrt Camelot, and if we need to relicense Camelot with the GPL license, or if there's something we can do (like calling ghostscript using the CLI and not import its code inside Camelot) to avoid relicensing. Right now the ghostscript wrapper is distributed with Camelot.
Since ghostscript (not the wrapper) has been a pain to install for users, I worked on pdftopng some months ago, which is a wrapper on top of poppler a PDF rendering library written in C++. It has pre-built wheels for all major operating systems which should make installation as easy as a pip install. But poppler and therefore pdftopng is GPLv2 licensed, so I also want to get some clarity on what would be the best way to integrate it with Camelot, and remove ghostscript as a dependency / make ghostscript optional.
This has been a mental roadblock (apart from not getting enough free time) that has prevented me from spending a lot of time here, but I want to change that. It would also be awesome if other people want to help with maintenance. If you're interested we can chat on Gitter!
@ramkrsna @abperiasamy Do you know any legal folks who can advice about this license issues. Thanks!
@vinayak-mehta Open Source licenses AMA session https://hub.osc.dial.community/t/open-source-licenses-ama-session/2369
Added a post in OSC Dial Community https://hub.osc.dial.community/t/question-about-ghostscript-licensing/2409
I also got a lot of inputs from the RC community, will try to summarize them here this week.