jimp 0.22.12 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/fonts.d.ts +5 -0
- package/dist/commonjs/fonts.d.ts.map +1 -0
- package/dist/commonjs/fonts.js +21 -0
- package/dist/commonjs/fonts.js.map +1 -0
- package/dist/commonjs/index.d.ts +324 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +189 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/package.json +7 -0
- package/dist/esm/fonts.d.ts +5 -0
- package/dist/esm/fonts.d.ts.map +1 -0
- package/dist/esm/fonts.js +5 -0
- package/dist/esm/fonts.js.map +1 -0
- package/dist/esm/index.d.ts +324 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +163 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +7 -0
- package/package.json +103 -42
- package/README.md +0 -779
- package/browser/README.md +0 -67
- package/browser/examples/dice.png +0 -0
- package/browser/examples/example1.html +0 -25
- package/browser/examples/example2.html +0 -20
- package/browser/examples/example3.html +0 -31
- package/browser/examples/example4.html +0 -74
- package/browser/examples/jimp-worker.js +0 -18
- package/browser/examples/lenna.png +0 -0
- package/browser/examples/test.html +0 -49
- package/browser/lib/jimp.js +0 -3
- package/browser/lib/jimp.js.LICENSE.txt +0 -277
- package/browser/lib/jimp.js.map +0 -1
- package/dist/index.js +0 -18
- package/dist/index.js.map +0 -1
- package/es/index.js +0 -8
- package/es/index.js.map +0 -1
- package/fonts/open-sans/Apache License.txt +0 -201
- package/fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt +0 -160
- package/fonts/open-sans/open-sans-10-black/open-sans-10-black.png +0 -0
- package/fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt +0 -183
- package/fonts/open-sans/open-sans-12-black/open-sans-12-black.png +0 -0
- package/fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt +0 -298
- package/fonts/open-sans/open-sans-128-black/open-sans-128-black.png +0 -0
- package/fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt +0 -298
- package/fonts/open-sans/open-sans-128-white/open-sans-128-white.png +0 -0
- package/fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt +0 -215
- package/fonts/open-sans/open-sans-14-black/open-sans-14-black.png +0 -0
- package/fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt +0 -298
- package/fonts/open-sans/open-sans-16-black/open-sans-16-black.png +0 -0
- package/fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt +0 -298
- package/fonts/open-sans/open-sans-16-white/open-sans-16-white.png +0 -0
- package/fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt +0 -298
- package/fonts/open-sans/open-sans-32-black/open-sans-32-black.png +0 -0
- package/fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt +0 -298
- package/fonts/open-sans/open-sans-32-white/open-sans-32-white.png +0 -0
- package/fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt +0 -298
- package/fonts/open-sans/open-sans-64-black/open-sans-64-black.png +0 -0
- package/fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt +0 -298
- package/fonts/open-sans/open-sans-64-white/open-sans-64-white.png +0 -0
- package/fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt +0 -298
- package/fonts/open-sans/open-sans-8-black/open-sans-8-black.png +0 -0
- package/fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt +0 -298
- package/fonts/open-sans/open-sans-8-white/open-sans-8-white.png +0 -0
- package/types/index.d.ts +0 -53
- package/types/test.ts +0 -95
- package/types/tsconfig.json +0 -19
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The buffer module from node.js, for the browser.
|
|
3
|
-
*
|
|
4
|
-
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/*!
|
|
9
|
-
* The buffer module from node.js, for the browser.
|
|
10
|
-
*
|
|
11
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
12
|
-
* @license MIT
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/*!
|
|
16
|
-
* Timm
|
|
17
|
-
*
|
|
18
|
-
* Immutability helpers with fast reads and acceptable writes.
|
|
19
|
-
*
|
|
20
|
-
* @copyright Guillermo Grau Panea 2016
|
|
21
|
-
* @license MIT
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
25
|
-
|
|
26
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @preserve
|
|
30
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
31
|
-
* All rights reserved. (MIT Licensed)
|
|
32
|
-
*
|
|
33
|
-
* cie94.ts - part of Image Quantization Library
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @preserve
|
|
38
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
39
|
-
* All rights reserved. (MIT Licensed)
|
|
40
|
-
*
|
|
41
|
-
* ciede2000.ts - part of Image Quantization Library
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @preserve
|
|
46
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
47
|
-
* All rights reserved. (MIT Licensed)
|
|
48
|
-
*
|
|
49
|
-
* cmetric.ts - part of Image Quantization Library
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @preserve
|
|
54
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
55
|
-
* All rights reserved. (MIT Licensed)
|
|
56
|
-
*
|
|
57
|
-
* common.ts - part of Image Quantization Library
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @preserve
|
|
62
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
63
|
-
* All rights reserved. (MIT Licensed)
|
|
64
|
-
*
|
|
65
|
-
* constants.ts - part of Image Quantization Library
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @preserve
|
|
70
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
71
|
-
* All rights reserved. (MIT Licensed)
|
|
72
|
-
*
|
|
73
|
-
* ditherErrorDiffusionArray.ts - part of Image Quantization Library
|
|
74
|
-
*/
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @preserve
|
|
78
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
79
|
-
* All rights reserved. (MIT Licensed)
|
|
80
|
-
*
|
|
81
|
-
* euclidean.ts - part of Image Quantization Library
|
|
82
|
-
*/
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @preserve
|
|
86
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
87
|
-
* All rights reserved. (MIT Licensed)
|
|
88
|
-
*
|
|
89
|
-
* helper.ts - part of Image Quantization Library
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @preserve
|
|
94
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
95
|
-
* All rights reserved. (MIT Licensed)
|
|
96
|
-
*
|
|
97
|
-
* hueStatistics.ts - part of Image Quantization Library
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @preserve
|
|
102
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
103
|
-
* All rights reserved. (MIT Licensed)
|
|
104
|
-
*
|
|
105
|
-
* iq.ts - Image Quantization Library
|
|
106
|
-
*/
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @preserve
|
|
110
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
111
|
-
* All rights reserved. (MIT Licensed)
|
|
112
|
-
*
|
|
113
|
-
* lab2rgb.ts - part of Image Quantization Library
|
|
114
|
-
*/
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* @preserve
|
|
118
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
119
|
-
* All rights reserved. (MIT Licensed)
|
|
120
|
-
*
|
|
121
|
-
* lab2xyz.ts - part of Image Quantization Library
|
|
122
|
-
*/
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @preserve
|
|
126
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
127
|
-
* All rights reserved. (MIT Licensed)
|
|
128
|
-
*
|
|
129
|
-
* manhattanNeuQuant.ts - part of Image Quantization Library
|
|
130
|
-
*/
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* @preserve
|
|
134
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
135
|
-
* All rights reserved. (MIT Licensed)
|
|
136
|
-
*
|
|
137
|
-
* nearestColor.ts - part of Image Quantization Library
|
|
138
|
-
*/
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* @preserve
|
|
142
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
143
|
-
* All rights reserved. (MIT Licensed)
|
|
144
|
-
*
|
|
145
|
-
* palette.ts - part of Image Quantization Library
|
|
146
|
-
*/
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* @preserve
|
|
150
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
151
|
-
* All rights reserved. (MIT Licensed)
|
|
152
|
-
*
|
|
153
|
-
* pngQuant.ts - part of Image Quantization Library
|
|
154
|
-
*/
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* @preserve
|
|
158
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
159
|
-
* All rights reserved. (MIT Licensed)
|
|
160
|
-
*
|
|
161
|
-
* point.ts - part of Image Quantization Library
|
|
162
|
-
*/
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* @preserve
|
|
166
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
167
|
-
* All rights reserved. (MIT Licensed)
|
|
168
|
-
*
|
|
169
|
-
* pointContainer.ts - part of Image Quantization Library
|
|
170
|
-
*/
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* @preserve
|
|
174
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
175
|
-
* All rights reserved. (MIT Licensed)
|
|
176
|
-
*
|
|
177
|
-
* rgb2hsl.ts - part of Image Quantization Library
|
|
178
|
-
*/
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* @preserve
|
|
182
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
183
|
-
* All rights reserved. (MIT Licensed)
|
|
184
|
-
*
|
|
185
|
-
* rgb2lab.ts - part of Image Quantization Library
|
|
186
|
-
*/
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* @preserve
|
|
190
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
191
|
-
* All rights reserved. (MIT Licensed)
|
|
192
|
-
*
|
|
193
|
-
* rgb2xyz.ts - part of Image Quantization Library
|
|
194
|
-
*/
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* @preserve
|
|
198
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
199
|
-
* All rights reserved. (MIT Licensed)
|
|
200
|
-
*
|
|
201
|
-
* ssim.ts - part of Image Quantization Library
|
|
202
|
-
*/
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* @preserve
|
|
206
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
207
|
-
* All rights reserved. (MIT Licensed)
|
|
208
|
-
*
|
|
209
|
-
* wuQuant.ts - part of Image Quantization Library
|
|
210
|
-
*/
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* @preserve
|
|
214
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
215
|
-
* All rights reserved. (MIT Licensed)
|
|
216
|
-
*
|
|
217
|
-
* xyz2lab.ts - part of Image Quantization Library
|
|
218
|
-
*/
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* @preserve
|
|
222
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
223
|
-
* All rights reserved. (MIT Licensed)
|
|
224
|
-
*
|
|
225
|
-
* xyz2rgb.ts - part of Image Quantization Library
|
|
226
|
-
*/
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* @preserve
|
|
230
|
-
* MIT License
|
|
231
|
-
*
|
|
232
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
233
|
-
*
|
|
234
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
235
|
-
* of this software and associated documentation files (the "Software"), to
|
|
236
|
-
* deal in the Software without restriction, including without limitation the
|
|
237
|
-
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
238
|
-
* sell copies of the Software, and to permit persons to whom the Software is
|
|
239
|
-
* furnished to do so, subject to the following conditions:
|
|
240
|
-
*
|
|
241
|
-
* The above copyright notice and this permission notice shall be included in
|
|
242
|
-
* all copies or substantial portions of the Software.
|
|
243
|
-
*
|
|
244
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
245
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
246
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
247
|
-
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
248
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
249
|
-
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
250
|
-
* IN THE SOFTWARE.
|
|
251
|
-
*
|
|
252
|
-
* riemersma.ts - part of Image Quantization Library
|
|
253
|
-
*/
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* @preserve TypeScript port:
|
|
257
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
258
|
-
* All rights reserved. (MIT Licensed)
|
|
259
|
-
*
|
|
260
|
-
* colorHistogram.ts - part of Image Quantization Library
|
|
261
|
-
*/
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* @preserve TypeScript port:
|
|
265
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
266
|
-
* All rights reserved. (MIT Licensed)
|
|
267
|
-
*
|
|
268
|
-
* neuquant.ts - part of Image Quantization Library
|
|
269
|
-
*/
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* @preserve TypeScript port:
|
|
273
|
-
* Copyright 2015-2018 Igor Bezkrovnyi
|
|
274
|
-
* All rights reserved. (MIT Licensed)
|
|
275
|
-
*
|
|
276
|
-
* rgbquant.ts - part of Image Quantization Library
|
|
277
|
-
*/
|