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