jimp 0.17.9 → 0.17.10
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/CHANGELOG.md +12 -0
- package/README.md +0 -15
- package/browser/examples/example1.html +1 -1
- package/browser/examples/jimp-worker.js +1 -1
- package/browser/examples/test.html +1 -1
- package/browser/lib/jimp.js +3 -0
- package/browser/lib/jimp.js.LICENSE.txt +210 -0
- package/browser/lib/jimp.js.map +1 -0
- package/es/index.js +22 -0
- package/es/index.js.map +1 -0
- package/package.json +12 -35
- package/types/index.d.ts +51 -605
- package/types/test.ts +18 -26
- package/types/ts3.1/index.d.ts +0 -51
- package/types/ts3.1/test.ts +0 -93
- package/types/ts3.1/tsconfig.json +0 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v0.17.9 (Sat Feb 04 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- switch from browserify to webpack [#1140](https://github.com/jimp-dev/jimp/pull/1140) ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v0.17.6 (Sat Feb 04 2023)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/README.md
CHANGED
|
@@ -77,21 +77,6 @@ If you're using a web bundles (webpack, rollup, parcel) you can benefit from usi
|
|
|
77
77
|
import Jimp from "jimp/es";
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
### WebPack
|
|
81
|
-
|
|
82
|
-
If you're using webpack you can set `process.browser` to true and your build of jimp will exclude certain parts, making it load faster.
|
|
83
|
-
|
|
84
|
-
```js
|
|
85
|
-
{
|
|
86
|
-
plugins: [
|
|
87
|
-
new webpack.DefinePlugin({
|
|
88
|
-
'process.browser': 'true'
|
|
89
|
-
}),
|
|
90
|
-
...
|
|
91
|
-
],
|
|
92
|
-
}
|
|
93
|
-
```
|
|
94
|
-
|
|
95
80
|
## Basic usage
|
|
96
81
|
|
|
97
82
|
The static `Jimp.read` method takes the path to a file, URL, dimensions, a Jimp instance or a buffer and returns a Promise:
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
</head>
|
|
6
6
|
<body>
|
|
7
7
|
<h1>Demonstrates loading a local file using Jimp on the main thread</h1>
|
|
8
|
-
<script src="../lib/jimp.
|
|
8
|
+
<script src="../lib/jimp.js"></script>
|
|
9
9
|
<script>
|
|
10
10
|
Jimp.read(
|
|
11
11
|
"https://upload.wikimedia.org/wikipedia/commons/0/01/Bot-Test.jpg"
|