|
| 1 | +libjpeg-turbo Licenses |
| 2 | +====================== |
| 3 | + |
| 4 | +libjpeg-turbo is covered by two compatible BSD-style open source licenses: |
| 5 | + |
| 6 | +- The IJG (Independent JPEG Group) License, which is listed in |
| 7 | + [README.ijg](README.ijg) |
| 8 | + |
| 9 | + This license applies to the libjpeg API library and associated programs, |
| 10 | + including any code inherited from libjpeg and any modifications to that |
| 11 | + code. Note that the libjpeg-turbo SIMD source code bears the |
| 12 | + [zlib License](https://opensource.org/licenses/Zlib), but in the context of |
| 13 | + the overall libjpeg API library, the terms of the zlib License are subsumed |
| 14 | + by the terms of the IJG License. |
| 15 | + |
| 16 | +- The Modified (3-clause) BSD License, which is listed below |
| 17 | + |
| 18 | + This license applies to the TurboJPEG API library and associated programs, as |
| 19 | + well as the build system. Note that the TurboJPEG API library wraps the |
| 20 | + libjpeg API library, so in the context of the overall TurboJPEG API library, |
| 21 | + both the terms of the IJG License and the terms of the Modified (3-clause) |
| 22 | + BSD License apply. |
| 23 | + |
| 24 | + |
| 25 | +Complying with the libjpeg-turbo Licenses |
| 26 | +========================================= |
| 27 | + |
| 28 | +This section provides a roll-up of the libjpeg-turbo licensing terms, to the |
| 29 | +best of our understanding. This is not a license in and of itself. It is |
| 30 | +intended solely for clarification. |
| 31 | + |
| 32 | +1. If you are distributing a modified version of the libjpeg-turbo source, |
| 33 | + then: |
| 34 | + |
| 35 | + 1. You cannot alter or remove any existing copyright or license notices |
| 36 | + from the source. |
| 37 | + |
| 38 | + **Origin** |
| 39 | + - Clause 1 of the IJG License |
| 40 | + - Clause 1 of the Modified BSD License |
| 41 | + - Clauses 1 and 3 of the zlib License |
| 42 | + |
| 43 | + 2. You must add your own copyright notice to the header of each source |
| 44 | + file you modified, so others can tell that you modified that file. (If |
| 45 | + there is not an existing copyright header in that file, then you can |
| 46 | + simply add a notice stating that you modified the file.) |
| 47 | + |
| 48 | + **Origin** |
| 49 | + - Clause 1 of the IJG License |
| 50 | + - Clause 2 of the zlib License |
| 51 | + |
| 52 | + 3. You must include the IJG README file, and you must not alter any of the |
| 53 | + copyright or license text in that file. |
| 54 | + |
| 55 | + **Origin** |
| 56 | + - Clause 1 of the IJG License |
| 57 | + |
| 58 | +2. If you are distributing only libjpeg-turbo binaries without the source, or |
| 59 | + if you are distributing an application that statically links with |
| 60 | + libjpeg-turbo, then: |
| 61 | + |
| 62 | + 1. Your product documentation must include a message stating: |
| 63 | + |
| 64 | + This software is based in part on the work of the Independent JPEG |
| 65 | + Group. |
| 66 | + |
| 67 | + **Origin** |
| 68 | + - Clause 2 of the IJG license |
| 69 | + |
| 70 | + 2. If your binary distribution includes or uses the TurboJPEG API, then |
| 71 | + your product documentation must include the text of the Modified BSD |
| 72 | + License (see below.) |
| 73 | + |
| 74 | + **Origin** |
| 75 | + - Clause 2 of the Modified BSD License |
| 76 | + |
| 77 | +3. You cannot use the name of the IJG or The libjpeg-turbo Project or the |
| 78 | + contributors thereof in advertising, publicity, etc. |
| 79 | + |
| 80 | + **Origin** |
| 81 | + - IJG License |
| 82 | + - Clause 3 of the Modified BSD License |
| 83 | + |
| 84 | +4. The IJG and The libjpeg-turbo Project do not warrant libjpeg-turbo to be |
| 85 | + free of defects, nor do we accept any liability for undesirable |
| 86 | + consequences resulting from your use of the software. |
| 87 | + |
| 88 | + **Origin** |
| 89 | + - IJG License |
| 90 | + - Modified BSD License |
| 91 | + - zlib License |
| 92 | + |
| 93 | + |
| 94 | +The Modified (3-clause) BSD License |
| 95 | +=================================== |
| 96 | + |
| 97 | +Copyright (C)2009-2024 D. R. Commander. All Rights Reserved.<br> |
| 98 | +Copyright (C)2015 Viktor Szathmáry. All Rights Reserved. |
| 99 | + |
| 100 | +Redistribution and use in source and binary forms, with or without |
| 101 | +modification, are permitted provided that the following conditions are met: |
| 102 | + |
| 103 | +- Redistributions of source code must retain the above copyright notice, |
| 104 | + this list of conditions and the following disclaimer. |
| 105 | +- Redistributions in binary form must reproduce the above copyright notice, |
| 106 | + this list of conditions and the following disclaimer in the documentation |
| 107 | + and/or other materials provided with the distribution. |
| 108 | +- Neither the name of the libjpeg-turbo Project nor the names of its |
| 109 | + contributors may be used to endorse or promote products derived from this |
| 110 | + software without specific prior written permission. |
| 111 | + |
| 112 | +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS", |
| 113 | +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 114 | +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 115 | +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE |
| 116 | +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 117 | +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 118 | +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 119 | +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 120 | +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 121 | +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 122 | +POSSIBILITY OF SUCH DAMAGE. |
| 123 | + |
| 124 | + |
| 125 | +Why Two Licenses? |
| 126 | +================= |
| 127 | + |
| 128 | +The zlib License could have been used instead of the Modified (3-clause) BSD |
| 129 | +License, and since the IJG License effectively subsumes the distribution |
| 130 | +conditions of the zlib License, this would have effectively placed |
| 131 | +libjpeg-turbo binary distributions under the IJG License. However, the IJG |
| 132 | +License specifically refers to the Independent JPEG Group and does not extend |
| 133 | +attribution and endorsement protections to other entities. Thus, it was |
| 134 | +desirable to choose a license that granted us the same protections for new code |
| 135 | +that were granted to the IJG for code derived from their software. |
0 commit comments