Skip to content

Commit 465a9fe

Browse files
committed
Add file that explains the libjpeg-turbo licenses
Previously this information was found in a page on libjpeg-turbo.org, but there was still some confusion, because README-turbo.txt wasn't clear as to which license applied to what.
1 parent b5a55e6 commit 465a9fe

File tree

2 files changed

+81
-27
lines changed

2 files changed

+81
-27
lines changed

LICENSE.txt

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
libjpeg-turbo Licenses
2+
----------------------
3+
4+
libjpeg-turbo is covered by three compatible BSD-style open source licenses:
5+
6+
-- The IJG (Independent JPEG Group) License, which is listed in README
7+
8+
This license applies to the libjpeg API library and associated programs
9+
(any code inherited from libjpeg, and any modifications to that code.)
10+
11+
-- The Modified (3-clause) BSD License, which is listed in turbojpeg.c
12+
13+
This license covers the TurboJPEG API library and associated programs.
14+
15+
-- The zlib License, which is listed in simd/jsimdext.inc
16+
17+
This license is a subset of the other two, and it covers the libjpeg-turbo
18+
SIMD extensions.
19+
20+
21+
Complying with the libjpeg-turbo Licenses
22+
-----------------------------------------
23+
24+
This section provides a roll-up of the libjpeg-turbo licensing terms, to the
25+
best of our understanding.
26+
27+
1. If you are distributing a modified version of the libjpeg-turbo source,
28+
then:
29+
30+
a. You cannot alter or remove any existing copyright or license notices
31+
from the source.
32+
33+
Origin: Clause 1 of the IJG License
34+
Clause 1 of the Modified BSD License
35+
Clauses 1 and 3 of the zlib License
36+
37+
b. You must add your own copyright notice to the header of each source
38+
file you modified, so others can tell that you modified that file (if
39+
there is not an existing copyright header in that file, then you can
40+
simply add a notice stating that you modified the file.)
41+
42+
Origin: Clause 1 of the IJG License
43+
Clause 2 of the zlib License
44+
45+
c. You must include the IJG README file, and you must not alter any of the
46+
copyright or license text in that file.
47+
48+
Origin: Clause 1 of the IJG License
49+
50+
2. If you are distributing only libjpeg-turbo binaries without the source, or
51+
if you are distributing an application that statically links with
52+
libjpeg-turbo, then:
53+
54+
a. Your product documentation must include a message stating:
55+
56+
This software is based in part on the work of the Independent JPEG
57+
Group.
58+
59+
Origin: Clause 2 of the IJG license
60+
61+
b. If your binary distribution includes or uses the TurboJPEG API, then
62+
your product documentation must include the text of the Modified BSD
63+
License.
64+
65+
Origin: Clause 2 of the Modified BSD License
66+
67+
3. You cannot use the name of the IJG or The libjpeg-turbo Project or the
68+
contributors thereof in advertising, publicity, etc.
69+
70+
Origin: IJG License
71+
Clause 3 of the Modified BSD License
72+
73+
4. The IJG and The libjpeg-turbo Project do not warrant libjpeg-turbo to be
74+
free of defects, nor do we accept any liability for undesirable
75+
consequences resulting from your use of the software.
76+
77+
Origin: IJG License
78+
Modified BSD License
79+
zlib License

README-turbo.txt

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,8 @@ broader range of users and developers.
2828
** License
2929
*******************************************************************************
3030

31-
Most of libjpeg-turbo inherits the non-restrictive, BSD-style license used by
32-
libjpeg (see README.) The TurboJPEG wrapper (both C and Java versions) and
33-
associated test programs bear a similar license, which is reproduced below:
34-
35-
Redistribution and use in source and binary forms, with or without
36-
modification, are permitted provided that the following conditions are met:
37-
38-
- Redistributions of source code must retain the above copyright notice,
39-
this list of conditions and the following disclaimer.
40-
- Redistributions in binary form must reproduce the above copyright notice,
41-
this list of conditions and the following disclaimer in the documentation
42-
and/or other materials provided with the distribution.
43-
- Neither the name of the libjpeg-turbo Project nor the names of its
44-
contributors may be used to endorse or promote products derived from this
45-
software without specific prior written permission.
46-
47-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS",
48-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
49-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
50-
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
51-
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
52-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
53-
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
54-
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
55-
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
56-
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
57-
POSSIBILITY OF SUCH DAMAGE.
31+
libjpeg-turbo is covered by three compatible BSD-style open source licenses.
32+
Refer to LICENSE.txt for a roll-up of license terms.
5833

5934

6035
*******************************************************************************

0 commit comments

Comments
 (0)