Skip to content

Commit 2972744

Browse files
committed
Fixed static fromPixels
1 parent 073431e commit 2972744

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

js/image.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class JsImage extends Image {
241241
pixels.copy(fakeBmp, pos);
242242

243243
// ====== STORE JPEG
244-
const img = new Image();
244+
const img = new JsImage();
245245
img._load(fakeBmp, true);
246246

247247
return img;

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Luis Blanco <luisblanco1337@gmail.com>",
33
"name": "image-raub",
4-
"version": "5.0.0",
4+
"version": "5.0.1",
55
"description": "Native Image loader for Node.js",
66
"license": "MIT",
77
"main": "index.js",
@@ -19,8 +19,7 @@
1919
"index.d.ts",
2020
"install.js",
2121
"LICENSE",
22-
"package.json",
23-
"README.md"
22+
"package.json"
2423
],
2524
"engines": {
2625
"node": ">=22.9.0",

0 commit comments

Comments
 (0)