@jimp/core
Advanced tools
Comparing version 0.22.7 to 0.22.8
@@ -0,1 +1,13 @@ | ||
# v0.22.8 (Thu May 11 2023) | ||
#### 🚀 Enhancement | ||
- Composite: don't write to null pixels [#1226](https://github.com/jimp-dev/jimp/pull/1226) ([@sjoerd108](https://github.com/sjoerd108)) | ||
#### Authors: 1 | ||
- Sjoerd ([@sjoerd108](https://github.com/sjoerd108)) | ||
--- | ||
# v0.22.4 (Tue Feb 07 2023) | ||
@@ -2,0 +14,0 @@ |
@@ -61,2 +61,6 @@ "use strict"; | ||
const dstIdx = baseImage.getPixelIndex(x + sx, y + sy, constants.EDGE_CROP); | ||
if (dstIdx === -1) { | ||
// Skip target pixels outside of dst | ||
return; | ||
} | ||
const blended = blendmode({ | ||
@@ -63,0 +67,0 @@ r: this.bitmap.data[idx + 0] / 255, |
@@ -54,2 +54,6 @@ import { isNodePattern, throwError } from "@jimp/utils"; | ||
const dstIdx = baseImage.getPixelIndex(x + sx, y + sy, constants.EDGE_CROP); | ||
if (dstIdx === -1) { | ||
// Skip target pixels outside of dst | ||
return; | ||
} | ||
const blended = blendmode({ | ||
@@ -56,0 +60,0 @@ r: this.bitmap.data[idx + 0] / 255, |
{ | ||
"name": "@jimp/core", | ||
"version": "0.22.7", | ||
"version": "0.22.8", | ||
"description": "Jimp core", | ||
@@ -32,3 +32,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@jimp/utils": "^0.22.7", | ||
"@jimp/utils": "^0.22.8", | ||
"any-base": "^1.1.0", | ||
@@ -46,3 +46,3 @@ "buffer": "^5.2.0", | ||
}, | ||
"gitHead": "965a14e14d6e2acf81ddf78c30b4c85d921ea7db" | ||
"gitHead": "a5b93f822d63ffc0d20cb67adf03b1322e6a8f1b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
403154
3953
Updated@jimp/utils@^0.22.8