Skip to content

Request: consider dual licensing for GPLv2 compatibility #380

Closed

Description

@adamsilverstein

Hello libultrahdr team!

I am a WordPress core committer, currently working on a project to bring modern image processing to WordPress via client side media processing and would love to add support for UltraHDR images to the ~35+% of the web using WordPress. However the current Apache2.0 license is not compatible with the WordPress GPLv2 license (I am not a lawyer, but have confirmed this with one). Would you consider dual licensing under the Apache License 2.0 and BSD 3-Clause?

A maintainer of the libvips library suggested this in a comment, mentioning that Highway took a similar approach to ensure compatibility with NumPy's BSD-3 license (see e.g. the removed licensing paragraph in commit numpy/numpy@f09ab71).

If this is not feasible we will not be able bundle UltraHDR support directly with WordPress (forcing users to install a separate plugin to get support) which would be a huge loss for the web, one of the main potential beneficiaries of UltraHDR imagery.

cc: @gregbenz

Activity

  1. adamsilverstein commented on Jan 26, 2026

    @adamsilverstein
    ContributorAuthor

    If the licensing can't be changed we will either build without ultrahdr support (requiring a plugin to use ultrahdr), or use the new GPL compatible version I built with help from Claude: https://github.com/adamsilverstein/lib-open-ultrahdr

  2. ram-mohan commented on Feb 2, 2026

    @ram-mohan
    Contributor

    update: the request was communicated to code owners. awaiting their response.

  3. adamsilverstein commented on Mar 19, 2026

    @adamsilverstein
    ContributorAuthor

    Friendly ping for updates?

  4. kleisauke commented on Mar 20, 2026

    @kleisauke
    Contributor

    FWIW, wasm-vips v0.0.17 was released today and now builds against libultrahdr.

    If you need to avoid this dependency, you can disable it using the --disable-uhdr flag or alternatively pin wasm-vips to v0.0.16 or earlier. See also:
    https://github.com/kleisauke/wasm-vips/blob/master/THIRD-PARTY-NOTICES.md

  5. gregbenz commented on Mar 21, 2026

    @gregbenz
    Contributor

    @kleisauke Great to see that. I just created a test page using wasm-vips v0.0.17 and see great results using both sRGB and P3 test images with tests to recompress, resize, crop, and flip horizontally. Seems to produce valid output in all scenarios I've tested.

    However, I do not see a parameter to control quality of the gain map. It stays at high quality when it could allow for compression. Ideally, we would have an option to compress that (probably some default value based on the main quality, but with an option to override). If there is a better place to raise the discussion, please let me know (I see only issues not discussions active for wasm-vips).

    @adamsilverstein How are quality parameters set in WordPress and passed on to wasm-vips? I'm happy to do some testing now based on the parameters you would use by default to check and see if they should be refined for gain maps.

  6. kleisauke commented on Mar 22, 2026

    @kleisauke
    Contributor

    However, I do not see a parameter to control quality of the gain map. It stays at high quality when it could allow for compression. Ideally, we would have an option to compress that (probably some default value based on the main quality, but with an option to override).

    The JPEG compression factor can be controlled using the Q argument of image.uhdrsave(). It appears that this optional argument is missing from the docs at https://www.libvips.org/API/current/method.Image.uhdrsave.html, it need to be regenerated after commit libvips/libvips@b5c6241. I'll fix that.

    If there is a better place to raise the discussion, please let me know (I see only issues not discussions active for wasm-vips).

    For general image processing questions not specific to wasm-vips, it's best to ask them at https://github.com/libvips/libvips/discussions, which is the right place for such topics.

  7. temcguir commented on Mar 24, 2026

    @temcguir
    Collaborator

    Thanks for reaching out and for the detailed context!

    I'm stepping in to help out while the code owners are currently out.

    I've taken a look at your request and am currently checking with our internal open source licensing team to confirm if this dual-licensing approach is something we can implement for this repository.

    I'll follow up here as soon as I have more information or next steps. Thanks for your patience in the meantime!

  8. temcguir commented on Mar 27, 2026

    @temcguir
    Collaborator

    @adamsilverstein I've confirmed with our open-source licensing team that dual-licensing should be possible.

    Internally, our most common and preferred structure for dual-licensing (which we use heavily in the Rust ecosystem) is an Apache 2.0 / MIT dual license.

    Since the MIT license is also fully compatible with GPLv2, would an Apache 2.0 / MIT dual license work just as well for WordPress instead of BSD 3-Clause?

  9. adamsilverstein commented on Mar 27, 2026

    @adamsilverstein
    ContributorAuthor

    Excellent news @temcguir! Thanks.

    Since the MIT license is also fully compatible with GPLv2, would an Apache 2.0 / MIT dual license work just as well for WordPress instead of BSD 3-Clause?

    I believe so although I will also try to verify that with someone who has more professional expertise.

  10. adamsilverstein commented on Mar 27, 2026

    @adamsilverstein
    ContributorAuthor

    Since the MIT license is also fully compatible with GPLv2, would an Apache 2.0 / MIT dual license work just as well for WordPress instead of BSD 3-Clause?

    I verified the answer is yes, given the license covers the whole library.

    I will open a PR. It would be great to have this changed by July 1 so we can include it in WordPress 7.1.

  11. added a commit that references this issue on Mar 27, 2026
    90aa4f3
  12. adamsilverstein commented on Mar 27, 2026

    @adamsilverstein
    ContributorAuthor

    @temcguir I opened #386 for your consideration

  13. temcguir commented on Apr 6, 2026

    @temcguir
    Collaborator

    Quick update: We received approval to move forward with the dual-licensing.

    I'm currently working on getting the necessary repository permissions on my end so that I can review your PR (#386). Once I have that access, I'll take a look at the PR to ensure the new license headers match our required legal boilerplate.

    Thanks again for your patience and for putting the PR together.

  14. added a commit that references this issue on May 8, 2026
    b6282e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions