Skip to content

Alternatives for FreeImage #114

Closed

Description

@almarklein

FreeImage is maintained by a small group of devs, which is not necessarily a bad thing, but they are on sourceforge with CVS for version control. On people asking them to move to Github, so they can have CI, more contributors, etc. they seem to fail to see the advantage.

This is slightly worrisome, and we should keep an eye out for alternatives, thus this issue.

Activity

  1. changed the title [-]Alternative for FreeImage lib[/-] [+]Alternatives for FreeImage[/+] on Jul 29, 2015
  2. stefanv commented on Feb 8, 2016

    @stefanv

    @njsmith just pointed out to me that FreeImage's license is essentially MPL 1.0, which is not GPL compatble. This package (which "links" to freeimage using ctypes), is governed under the more restrictive of the BSD and the MPL license, not the BSD license as indicated.

    /cc @blink1073

  3. blink1073 commented on Feb 9, 2016

    @blink1073

    I'd be in favor of adding a Pillow plugin based on the one we have in scikit-image, and adding a dependency here on Pillow.

  4. almarklein commented on Feb 9, 2016

    @almarklein
    MemberAuthor

    This package (which "links" to freeimage using ctypes), is governed under the more restrictive of the BSD and the MPL license, not the BSD license as indicated.

    I'm not sure I follow ...

  5. blink1073 commented on Feb 9, 2016

    @blink1073

    By bundling freeimage and depending on it, this library becomes subject to the licensing terms of that library, if I understand correctly.

  6. stefanv commented on Feb 9, 2016

    @stefanv

    Yes, and not even bundling--the moment you use ctypes to load freeimage, you've effectively linked to it and the binary should be distributed under the terms of the GPL, not the BSD license.

  7. njsmith commented on Feb 9, 2016

    @njsmith

    Specifically IIUC if you use/distribute FreeImage then you're bound by either the GPL (v2 or v3), or the "FreeImage Public License" which is a rebranding of the Mozilla Public License v1.0. The situation is complicated, and it's definitely misleading to summarize it as being "BSD". (The GPL is, well, the GPL, and MPL 1.0 is a funky weak-copyleft license that's GPL-incompatible and deprecated -- Mozilla these days uses the substantially rewritten MPL 2.0.)

  8. almarklein commented on Feb 9, 2016

    @almarklein
    MemberAuthor

    I remember having looked into the FreeImage license with a few other ppl when this all started. We concluded that it looked ok-ish. GPL is a problem, obviously, but the FPL seemed liberal enough for us to bind to the binaries. So I'm guessing we drew the wrong conclusion then?

  9. stefanv commented on Feb 9, 2016

    @stefanv

    As Nathaniel mentioned, the FPL is, at a quick glance at least, the MPL 1.0, which is more constraining than BSD.

  10. almarklein commented on Feb 9, 2016

    @almarklein
    MemberAuthor

    Well, the LPGL is also more constraining than BSD, but it would allow us using the libs :) Before we make any decisions, I'd like to be sure that MPL restricts us from ctyping into the libs (from BSD-licensed code).

  11. njsmith commented on Feb 9, 2016

    @njsmith

    It depends on what you mean by "restricts". Legally you can certainly call into the MPL1.0-licensed libs. However, there are people who can use BSD-licensed code who would no longer be able to use your code, i.e. your code would not actually be BSD-licensed anymore as far as downstream users are concerned. The most obvious example is that the MPL1.0 and GPL are incompatible licenses, so a GPL licensed project is allowed to use your library if it's BSD-licensed, but not if you use MPL1.0 code. Well, and there are complicated details that depend on whether they actually get distributed together or not, and possibly in this particular case they could instead choose the GPL-licensing option for FreeImage.

    I think the bottom line is, your users might or might not be okay with whatever license you end up using -- it's just that the whole (imageio + freeimage) conglomeration is not actually BSD-licensed, so instead of telling users that it it BSD you should somehow communicate what the license actually is so that they can decide whether or not it works for their particular circumstances.

  12. almarklein commented on Feb 10, 2016

    @almarklein
    MemberAuthor

    Ok, I read through the FI license again. This is what I make of it.

    2.1. The Initial Developer Grant.
    The Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims:

    (a) to use, reproduce, modify, display, perform, sublicense and distribute the Original Code (or portions thereof) with or without Modifications, or as part of a Larger Work; and

    (b) under patents now or hereafter owned or controlled by Initial Developer, to make, have made, use and sell ("Utilize") the Original Code (or portions thereof), but solely to the extent that
    any such patent is reasonably necessary to enable You to Utilize the Original Code (or portions thereof) and not to any greater extent that may be necessary to Utilize further Modifications or
    combinations.

    Sounds good ...

    3.6. Distribution of Executable Versions.
    You may distribute Covered Code in Executable form only if the requirements of Section 3.1-3.5 have been met for that Covered Code, ...

    Meaning that any changes that we make to the freeimage source code must be made available under the same license. But we make no changes to freeimage itself.

    ... and if You include a notice stating that the Source Code version of the Covered Code is available under the terms of this License, including a description of how and where You have fulfilled the obligations of Section 3.2. The notice must be conspicuously included in any notice in an Executable version, related documentation or collateral in which You
    describe recipients' rights relating to the Covered Code.

    So, we should mention/provide the FreeImage license in our docs and let our users know that any derived work should also mention the FI license.

    You may distribute the Executable version of Covered Code under a license of Your choice, which may contain terms different from this License,
    provided that You are in compliance with the terms of this License and that the license for the Executable version does not attempt to limit or alter the recipient's rights in the Source Code version from the rights set forth in this License. If You distribute the Executable version under a different license You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer or any Contributor. You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of any such terms You offer.

    IIUC this means we can ship and use the library, and as long as we honor the FI license for the FI code, we can use whatever license we want for our code.

    3.7. Larger Works.
    You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Code.

  13. njsmith commented on Feb 10, 2016

    @njsmith

    I'm sorry, but I just don't really have time to play armchair lawyer here :-/. Sorry that FOSS licensing means that you have to somehow pick up a bunch of expertise in this irrelevant nonsense... I stand by my summary in my previous comment. (BTW your summary skills over crucial bits, including the parts that make MPL1.0 incompatible with the GPL.)

  14. 7 remaining items

  15. stefanv commented on May 14, 2016

    @stefanv

    Yes, I'll be there as well.

  16. almarklein commented on Jul 17, 2016

    @almarklein
    MemberAuthor

    Yay, we managed to meet up! Summarizing:

    The problem with the freeimage license is that it is based on version 1 of the MPL (Mozilla Public License), which is incompatible with the GPL. As written on this page: "[The CDDL license] is a free software license. It has a weak per-file copyleft (like version 1 of the Mozilla Public License) which makes it incompatible with the GNU GPL. This means a module covered by the GPL and a module covered by the CDDL cannot legally be linked together. " This is a problem for users of imageio / scikit-image who also need GPL licensed code.

    The MPL 2.0 does not have this problem, as is written in the MPL v2.0 FAQ: "Q14: May I combine MPL-licensed code and (L)GPL-licensed code in the same executable program? --- Yes, by creating a "Larger Work" under the terms of Section 3.3. In particular, three requirements must be met: [...]"

    The plan is to contact the FreeImage authors to hopefully convince them to upgrade to the MPL 2.0 license.

    Regardless of what the outcome of that will be, we'll add a plugin based on Pillow, which seems to come really close nowadays in terms of supported formats (and is on GitHub, has CI, etc.). The outcome will likely affect what we'll do about what the default plugin will be for certain formats, and whether we include/depend on FreeImage and Pillow by default.

  17. ghisvail commented on Sep 19, 2016

    @ghisvail
    Contributor

    The plan is to contact the FreeImage authors to hopefully convince them to upgrade to the MPL 2.0 license.

    I believe it is in the pipeline (some thread I read on the upstream sourceforge forum), but the project does not look very active. I forwarded a few patches to them and never got any reply back for instance.

    we'll add a plugin based on Pillow, which seems to come really close nowadays in terms of supported formats

    Using Pillow as a dependency sounds more sensible indeed, with the added benefit that it will be easily pip installable.

  18. almarklein commented on Sep 19, 2016

    @almarklein
    MemberAuthor

    I have not yet had a reply from the email that I sent in July. I just send a reminder. In the meantime I plan to work on a Pillow plugin in the coming weeks.

  19. almarklein commented on Dec 6, 2016

    @almarklein
    MemberAuthor

    Took me a while, but its done!

  20. njsmith commented on Dec 7, 2016

    @njsmith

    Hooray! I know this kind of thing can be long and thankless, so: thanks :-)

  21. stefanv commented on Dec 9, 2016

    @stefanv

    This is amazing; thank you so much! Now the path is open to using imageio as the IO backend to skimage.

  22. ghisvail commented on Dec 28, 2016

    @ghisvail
    Contributor

    Sourceforge repository is outdated.

    Who in the world is still using SourceForge to get software? PyPI is you friend.

  23. ghisvail commented on Dec 28, 2016

    @ghisvail
    Contributor

    Sorry, but PyPI is for Python.

    And imageio is written in?

  24. p-pap commented on Oct 9, 2022

    @p-pap

    FreeImage is maintained by a small group of devs, which is not necessarily a bad thing, but they are on sourceforge with CVS for version control. On people asking them to move to Github, so they can have CI, more contributors, etc. they seem to fail to see the advantage.

    I'm sorry but I fail to see the "advantage" as well. I m not related to FreeImage developers nor I am a big fan of SourceForge, but I applaud their decision to stay away of GitHub.As for their CVS for version control - which you seem to hate - well guess what, they seem to like it. It's their project, not yours.

    GitHub created more problems than the ones it is supposed to solve. To name the tip of the iceberg: every random unskilled "coder" just forks an existing project, adds literally nothing to it (or replaces building system with another one nobody asked for) and there, he/she is a developer now. I can perfectly understand why some developers stay away of GitHub, and I am one of them. The only reason I have an account here is because of other projects require it for bug reports.

  25. almarklein commented on Oct 10, 2022

    @almarklein
    MemberAuthor

    It's their project, not yours.

    Sure. But there is no way for us to contribute back this way. This is a liability. Similarly they have been unwilling to update their license to make it more easier to use legal-wise. The FreeImage devs are free to do what and where they want. Good for them. But it has implications on how useful FreeImage is to us. That's all what this issue is about 🤷

  26. p-pap commented on Oct 10, 2022

    @p-pap

    I honestly don't see where is the problem. I use FreeImage regularly, if there is any problem I could create a ticket to SourceForge, or join a discussion. If there is code to contribute, I can do that too. Why on Earth it has to be on GitHub? At least SourceForge is not full of garbage as GitHub, nor it is owned by Micro$oft.

    Similarly they have been unwilling to update their license to make it more easier to use legal-wise.

    They did well to be unwilling to "update" their license to your liking. In case you didn't notice, FreeImage comes with double licensing: if you don't like GPL, they have their own, more permissive license too (FIPL - which is why FreeImage is used by proprietary software). Where is the problem, "legal-wise"?

    I think the only "problem" here is that they use a platform, a license, and and a version control system which you just don't like yourself. It looks like it is a crime to stay away of GitHub or use their own permissive licensing, and of course using CVS is such a sin... Come on now, there is nothing wrong with FreeImage, other that refusing to do what you want them to do. I am not affiliated with FreeImage developers in any way, but I wholeheartedly applaud and salute their decision to not follow your liking.

  27. stefanv commented on Oct 10, 2022

    @stefanv

    Everyone's entitled to their opinion on all these issues, but I don't see the point of this discussion; this issue has been closed since 2016. Please make concrete suggestions for changes, if any, and otherwise let's keep the conversation civil.

  28. ghisvail commented on Oct 10, 2022

    @ghisvail
    Contributor

    I did not expect this thread be revived and fail to understand the rationales as to why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions