D bindings to the GraphicsMagick library.
Revisão | 8b5ddbdbddeff449f25354f7d296cef33d45d684 (tree) |
---|---|
Hora | 2022-03-11 13:11:11 |
Autor | kaerou <stigma@disr...> |
Commiter | kaerou |
Add README.md and Copyright.txt for graphicsmagic_c.
@@ -0,0 +1,269 @@ | ||
1 | +.. This text is in reStucturedText format, so it may look a bit odd. | |
2 | +.. See http://docutils.sourceforge.net/rst.html for details. | |
3 | + | |
4 | +====================================== | |
5 | +GraphicsMagick Copyrights and Licenses | |
6 | +====================================== | |
7 | + | |
8 | +This file is part of the GraphicsMagick software distributed by the | |
9 | +GraphicsMagick Group. | |
10 | + | |
11 | + [*Please note that the legal community considers 15 or more | |
12 | + total lines of code or text (not necessarily contiguous) to | |
13 | + be significant for the purposes of copyright. Repeated | |
14 | + changes such as renaming a symbol has similar significance | |
15 | + to changing one line of code.*] | |
16 | + | |
17 | +The licences which components of this software fall under are as follows. | |
18 | + | |
19 | +1) | |
20 | + In November 2002, the GraphicsMagick Group created GraphicsMagick from | |
21 | + ImageMagick Studio's ImageMagick and applied this license: | |
22 | + | |
23 | + Copyright (C) 2002 GraphicsMagick Group, an organization dedicated | |
24 | + to making software imaging solutions freely available. | |
25 | + | |
26 | + Permission is hereby granted, free of charge, to any person obtaining | |
27 | + a copy of this software and associated documentation files | |
28 | + ("GraphicsMagick"), to deal in GraphicsMagick without restriction, | |
29 | + including without limitation the rights to use, copy, modify, merge, | |
30 | + publish, distribute, sublicense, and/or sell copies of GraphicsMagick, | |
31 | + and to permit persons to whom GraphicsMagick is furnished to do so, | |
32 | + subject to the following conditions: | |
33 | + | |
34 | + The above copyright notice and this permission notice shall be included | |
35 | + in all copies or substantial portions of GraphicsMagick. | |
36 | + | |
37 | + The software is provided "as is", without warranty of any kind, express | |
38 | + or implied, including but not limited to the warranties of | |
39 | + merchantability, fitness for a particular purpose and noninfringement. | |
40 | + In no event shall GraphicsMagick Group be liable for any claim, | |
41 | + damages or other liability, whether in an action of contract, tort or | |
42 | + otherwise, arising from, out of or in connection with GraphicsMagick | |
43 | + or the use or other dealings in GraphicsMagick. | |
44 | + | |
45 | + Except as contained in this notice, the name of the GraphicsMagick | |
46 | + Group shall not be used in advertising or otherwise to promote the | |
47 | + sale, use or other dealings in GraphicsMagick without prior written | |
48 | + authorization from the GraphicsMagick Group. | |
49 | + | |
50 | +2) | |
51 | + In August 1999, ImageMagick Studio assumed the responsibility for the | |
52 | + development of ImageMagick and applied a new license: | |
53 | + | |
54 | + Copyright (C) 2002 ImageMagick Studio, a non-profit organization dedicated | |
55 | + to making software imaging solutions freely available. | |
56 | + | |
57 | + Permission is hereby granted, free of charge, to any person obtaining a | |
58 | + copy of this software and associated documentation files ("ImageMagick"), | |
59 | + to deal in ImageMagick without restriction, including without limitation | |
60 | + the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
61 | + and/or sell copies of ImageMagick, and to permit persons to whom the | |
62 | + ImageMagick is furnished to do so, subject to the following conditions: | |
63 | + | |
64 | + The above copyright notice and this permission notice shall be included in | |
65 | + all copies or substantial portions of ImageMagick. | |
66 | + | |
67 | + The software is provided "as is", without warranty of any kind, express or | |
68 | + implied, including but not limited to the warranties of merchantability, | |
69 | + fitness for a particular purpose and noninfringement. In no event shall | |
70 | + ImageMagick Studio be liable for any claim, damages or other liability, | |
71 | + whether in an action of contract, tort or otherwise, arising from, out of | |
72 | + or in connection with ImageMagick or the use or other dealings in | |
73 | + ImageMagick. | |
74 | + | |
75 | + Except as contained in this notice, the name of the ImageMagick Studio | |
76 | + shall not be used in advertising or otherwise to promote the sale, use or | |
77 | + other dealings in ImageMagick without prior written authorization from the | |
78 | + ImageMagick Studio. | |
79 | + | |
80 | +3) | |
81 | + From 1991 to August 1999, ImageMagick was developed and distributed by | |
82 | + E. I. du Pont de Nemours and Company: | |
83 | + | |
84 | + Copyright 1999 E. I. du Pont de Nemours and Company | |
85 | + | |
86 | + Permission is hereby granted, free of charge, to any person obtaining a | |
87 | + copy of this software and associated documentation files | |
88 | + ("ImageMagick"), to deal in ImageMagick without restriction, including | |
89 | + without limitation the rights to use, copy, modify, merge, publish, | |
90 | + distribute, sublicense, and/or sell copies of ImageMagick, and to | |
91 | + permit persons to whom the ImageMagick is furnished to do so, subject | |
92 | + to the following conditions: | |
93 | + | |
94 | + The above copyright notice and this permission notice shall be included | |
95 | + in all copies or substantial portions of ImageMagick. | |
96 | + | |
97 | + The software is provided "as is", without warranty of any kind, express | |
98 | + or implied, including but not limited to the warranties of | |
99 | + merchantability, fitness for a particular purpose and noninfringement. | |
100 | + In no event shall E. I. du Pont de Nemours and Company be liable for | |
101 | + any claim, damages or other liability, whether in an action of | |
102 | + contract, tort or otherwise, arising from, out of or in connection with | |
103 | + ImageMagick or the use or other dealings in ImageMagick. | |
104 | + | |
105 | + Except as contained in this notice, the name of the E. I. du Pont de | |
106 | + Nemours and Company shall not be used in advertising or otherwise to | |
107 | + promote the sale, use or other dealings in ImageMagick without prior | |
108 | + written authorization from the E. I. du Pont de Nemours and Company. | |
109 | + | |
110 | +4) | |
111 | + This copyright is limited to some code (for locating an installed | |
112 | + Ghostscript under Windows) in the file magick/nt_base.c which was | |
113 | + incorporated from the gsview package: | |
114 | + | |
115 | + Copyright (C) 2000-2002, Ghostgum Software Pty Ltd. All rights reserved. | |
116 | + | |
117 | + Permission is hereby granted, free of charge, to any person obtaining | |
118 | + a copy of this file ("Software"), to deal in the Software without | |
119 | + restriction, including without limitation the rights to use, copy, | |
120 | + modify, merge, publish, distribute, sublicense, and/or sell copies of | |
121 | + this Software, and to permit persons to whom this file is furnished to | |
122 | + do so, subject to the following conditions: | |
123 | + | |
124 | + This Software is distributed with NO WARRANTY OF ANY KIND. No author | |
125 | + or distributor accepts any responsibility for the consequences of using it, | |
126 | + or for whether it serves any particular purpose or works at all, unless he | |
127 | + or she says so in writing. | |
128 | + | |
129 | + The above copyright notice and this permission notice shall be included | |
130 | + in all copies or substantial portions of the Software. | |
131 | + | |
132 | +5) | |
133 | + The GraphicsMagick Base64Decode() and Base64Encode() functions are | |
134 | + based on source code obtained from OpenSSH. This source code is | |
135 | + distributed under the following license: | |
136 | + | |
137 | + Copyright (c) 2000 Markus Friedl. All rights reserved. | |
138 | + | |
139 | + Redistribution and use in source and binary forms, with or without | |
140 | + modification, are permitted provided that the following conditions | |
141 | + are met: | |
142 | + | |
143 | + 1. Redistributions of source code must retain the above copyright | |
144 | + notice, this list of conditions and the following disclaimer. | |
145 | + | |
146 | + 2. Redistributions in binary form must reproduce the above copyright | |
147 | + notice, this list of conditions and the following disclaimer in the | |
148 | + documentation and/or other materials provided with the distribution. | |
149 | + | |
150 | + THIS SOFTWARE IS PROVIDED BY THE AUTHOR \`\`AS IS\'\' AND ANY EXPRESS OR | |
151 | + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | |
152 | + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |
153 | + IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | |
154 | + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | |
155 | + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
156 | + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
157 | + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
158 | + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | |
159 | + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
160 | + | |
161 | +6) | |
162 | + Many of the pattern images in coders/logo.c are derived from XFig, | |
163 | + which is distributed under the following license: | |
164 | + | |
165 | + | FIG : Facility for Interactive Generation of figures | |
166 | + | Copyright (c) 1985-1988 by Supoj Sutanthavibul | |
167 | + | Parts Copyright (c) 1989-2000 by Brian V. Smith | |
168 | + | Parts Copyright (c) 1991 by Paul King | |
169 | + | |
170 | + Any party obtaining a copy of these files is granted, free of charge, a | |
171 | + full and unrestricted irrevocable, world-wide, paid up, royalty-free, | |
172 | + nonexclusive right and license to deal in this software and | |
173 | + documentation files (the "Software"), including without limitation the | |
174 | + rights to use, copy, modify, merge, publish, distribute, sublicense, | |
175 | + and/or sell copies of the Software, and to permit persons who receive | |
176 | + copies from any such party to do so, with the only requirement being | |
177 | + that this copyright notice remain intact. | |
178 | + | |
179 | +7) | |
180 | + The documentation for the composition operators is copied from the | |
181 | + rlecomp manual page, which is authored by Rod Bogart and John W. | |
182 | + Peterson. Rlecomp is part of the Utah Raster Toolkit distributed by the | |
183 | + University of Michigan and the University of Utah. The copyright for | |
184 | + this manual page is as follows: | |
185 | + | |
186 | + Copyright (c) 1986, University of Utah | |
187 | + | |
188 | + This software is copyrighted as noted below. It may be freely copied, | |
189 | + modified, and redistributed, provided that the copyright notice is | |
190 | + preserved on all copies. | |
191 | + | |
192 | + There is no warranty or other guarantee of fitness for this software, | |
193 | + it is provided solely "as is". Bug reports or fixes may be sent | |
194 | + to the author, who may or may not act on them as he desires. | |
195 | + | |
196 | + You may not include this software in a program or other software product | |
197 | + without supplying the source, or without informing the end-user that the | |
198 | + source is available for no extra charge. | |
199 | + | |
200 | + If you modify this software, you should include a notice giving the | |
201 | + name of the person performing the modification, the date of modification, | |
202 | + and the reason for such modification. | |
203 | + | |
204 | +8) | |
205 | + The source code comprising swab.c is originally derived from | |
206 | + libtiff which has the following license: | |
207 | + | |
208 | + | Copyright (c) 1988-1997 Sam Leffler | |
209 | + | Copyright (c) 1991-1997 Silicon Graphics, Inc. | |
210 | + | |
211 | + Permission to use, copy, modify, distribute, and sell this software and | |
212 | + its documentation for any purpose is hereby granted without fee, provided | |
213 | + that (i) the above copyright notices and this permission notice appear in | |
214 | + all copies of the software and related documentation, and (ii) the names of | |
215 | + Sam Leffler and Silicon Graphics may not be used in any advertising or | |
216 | + publicity relating to the software without the specific, prior written | |
217 | + permission of Sam Leffler and Silicon Graphics. | |
218 | + | |
219 | + THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, | |
220 | + EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY | |
221 | + WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. | |
222 | + | |
223 | + IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR | |
224 | + ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, | |
225 | + OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | |
226 | + WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF | |
227 | + LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE | |
228 | + OF THIS SOFTWARE. | |
229 | + | |
230 | +9) | |
231 | + The C++ API known as "Magick++", and which resides in the Magick++ | |
232 | + directory, is distributed under the following license: | |
233 | + | |
234 | + Copyright 1999 - 2003 Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | |
235 | + | |
236 | + Permission is hereby granted, free of charge, to any person | |
237 | + obtaining a copy of the source files and associated documentation | |
238 | + files ("Magick++"), to deal in Magick++ without restriction, | |
239 | + including without limitation of the rights to use, copy, modify, | |
240 | + merge, publish, distribute, sublicense, and/or sell copies of | |
241 | + Magick++, and to permit persons to whom the Magick++ is furnished | |
242 | + to do so, subject to the following conditions: | |
243 | + | |
244 | + This copyright notice shall be included in all copies or | |
245 | + substantial portions of Magick++. The copyright to Magick++ is | |
246 | + retained by its author and shall not be subsumed or replaced by any | |
247 | + other copyright. | |
248 | + | |
249 | + The software is provided "as is", without warranty of any kind, | |
250 | + express or implied, including but not limited to the warranties of | |
251 | + merchantability, fitness for a particular purpose and | |
252 | + noninfringement. In no event shall Bob Friesenhahn be liable for | |
253 | + any claim, damages or other liability, whether in an action of | |
254 | + contract, tort or otherwise, arising from, out of or in connection | |
255 | + with Magick++ or the use or other dealings in Magick++. | |
256 | + | |
257 | +10) | |
258 | + GraphicsMagick makes use of third-party "delegate" libraries to | |
259 | + support certain optional features. These libraries bear their own | |
260 | + copyrights and licenses, which may be more or less restrictive than the | |
261 | + GraphicsMagick license. For convenience, when GraphicsMagick is | |
262 | + bundled with (or compiled with) "delegate" libraries, a copy of the | |
263 | + licenses for these libraries is provided in a "licenses" directory. | |
264 | + | |
265 | +--------------------------------------------------------------------------- | |
266 | + | |
267 | +| Copyright (C) 2002 - 2008 GraphicsMagick Group | |
268 | + | |
269 | + |
@@ -0,0 +1,70 @@ | ||
1 | +graphicsmagcick_c | |
2 | +================= | |
3 | + | |
4 | +GraphicsMagick binding for D. | |
5 | + | |
6 | +Dependencies | |
7 | +------------ | |
8 | + | |
9 | +In order to use these bindings, GraphicsMagick must be installed. | |
10 | + | |
11 | +For installation steps, please read <http://www.graphicsmagick.org/README.html>. | |
12 | + | |
13 | +These bindings aren't yet (2022-03-04) complete, but the intention is that | |
14 | +they'll support all GraphicsMagick 1.3 releases (i.e. 1.3 - 1.3.37 at time | |
15 | +or writing). | |
16 | + | |
17 | +Configuration | |
18 | +------------- | |
19 | + | |
20 | +To use this package via dub, you'll have to manually add the Git repository. | |
21 | +For this to work, you'll need dub v1.23.0 or above (comes with DMD 2.094.0 | |
22 | +and above). | |
23 | + | |
24 | + | |
25 | +For `dub.sdl` files, this will look something like: | |
26 | + | |
27 | +```sdl | |
28 | +dependency "magickd:graphicsmagick_c" repository="git+https://repo.or.cz/magickd.git" \ | |
29 | + version="3fd7fe2beba41e29943aac0672f9ae7bb8bd5fc1" | |
30 | +``` | |
31 | + | |
32 | +And for `dub.json` files: | |
33 | + | |
34 | +```json | |
35 | +"dependencies": { | |
36 | + "magickd:graphicsmagick_c": { | |
37 | + "repository": "git+https://repo.or.cz/magickd.git", | |
38 | + "version": "3fd7fe2beba41e29943aac0672f9ae7bb8bd5fc1" | |
39 | + } | |
40 | +} | |
41 | +``` | |
42 | + | |
43 | +The final step: specify which Quantum Depth to use (Q8, Q16, or Q32). | |
44 | +You can find this out by running `gm version` in a shell. | |
45 | +It should be in the first lines. | |
46 | + | |
47 | +To specify the version in dub.sdl (replace Q16): | |
48 | + | |
49 | +```sdl | |
50 | +subConfiguration "magickd:graphicsmagick_c" "Q16" | |
51 | +``` | |
52 | + | |
53 | +In dub.json (again, replace Q16): | |
54 | + | |
55 | +```json | |
56 | +"subConfigurations": { | |
57 | + "magickd:graphicsmagick_c": "Q16" | |
58 | +} | |
59 | +``` | |
60 | + | |
61 | +Examples | |
62 | +-------- | |
63 | + | |
64 | +See the `examples/` directory. | |
65 | + | |
66 | +License | |
67 | +------- | |
68 | + | |
69 | +`graphicsmagick_c` shares the same license as GraphicsMagick where applicable. | |
70 | +See the `Copyright.txt` file, or <http://www.graphicsmagick.org/Copyright.html>. |