jimp 0.12.2-canary.899.952.0 → 0.14.0

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 CHANGED
@@ -1,3 +1,28 @@
1
+ # v0.14.0 (Mon Jun 29 2020)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - include Addition (Add) blending mode + Officially drop support for Node 8 [#904](https://github.com/oliver-moran/jimp/pull/904) ([@GlitchyPSIX](https://github.com/GlitchyPSIX))
6
+
7
+ #### Authors: 1
8
+
9
+ - GlitchyPSI ([@GlitchyPSIX](https://github.com/GlitchyPSIX))
10
+
11
+ ---
12
+
13
+ # v0.13.0 (Fri Jun 05 2020)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - Add single frame encoder for type-gif [#899](https://github.com/oliver-moran/jimp/pull/899) ([@jeffbseeking](https://github.com/jeffbseeking) [@hipstersmoothie](https://github.com/hipstersmoothie))
18
+
19
+ #### Authors: 2
20
+
21
+ - Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
22
+ - Jeff Bonnes ([@jeffbseeking](https://github.com/jeffbseeking))
23
+
24
+ ---
25
+
1
26
  # v0.11.0 (Fri May 15 2020)
2
27
 
3
28
  #### 🚀 Enhancement
package/README.md CHANGED
@@ -344,6 +344,7 @@ The following modes can be used for compositing two images together. mode defaul
344
344
  Jimp.BLEND_SOURCE_OVER;
345
345
  Jimp.BLEND_DESTINATION_OVER;
346
346
  Jimp.BLEND_MULTIPLY;
347
+ Jimp.BLEND_ADD;
347
348
  Jimp.BLEND_SCREEN;
348
349
  Jimp.BLEND_OVERLAY;
349
350
  Jimp.BLEND_DARKEN;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Jimp v0.12.1
2
+ Jimp v0.13.0
3
3
  https://github.com/oliver-moran/jimp
4
4
  Ported for the Web by Phil Seaton
5
5
  MIT License
@@ -41543,6 +41543,7 @@ Object.defineProperty(exports, "__esModule", {
41543
41543
  exports.srcOver = srcOver;
41544
41544
  exports.dstOver = dstOver;
41545
41545
  exports.multiply = multiply;
41546
+ exports.add = add;
41546
41547
  exports.screen = screen;
41547
41548
  exports.overlay = overlay;
41548
41549
  exports.darken = darken;
@@ -41602,6 +41603,27 @@ function multiply(src, dst) {
41602
41603
  };
41603
41604
  }
41604
41605
 
41606
+ function add(src, dst) {
41607
+ var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
41608
+ src.a *= ops;
41609
+ var a = dst.a + src.a - dst.a * src.a;
41610
+ var sra = src.r * src.a;
41611
+ var sga = src.g * src.a;
41612
+ var sba = src.b * src.a;
41613
+ var dra = dst.r * dst.a;
41614
+ var dga = dst.g * dst.a;
41615
+ var dba = dst.b * dst.a;
41616
+ var r = (sra + dra) / a;
41617
+ var g = (sga + dga) / a;
41618
+ var b = (sba + dba) / a;
41619
+ return {
41620
+ r: r,
41621
+ g: g,
41622
+ b: b,
41623
+ a: a
41624
+ };
41625
+ }
41626
+
41605
41627
  function screen(src, dst) {
41606
41628
  var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
41607
41629
  src.a *= ops;
@@ -41852,7 +41874,7 @@ module.exports = exports.default;
41852
41874
  Object.defineProperty(exports, "__esModule", {
41853
41875
  value: true
41854
41876
  });
41855
- exports.EDGE_CROP = exports.EDGE_WRAP = exports.EDGE_EXTEND = exports.BLEND_EXCLUSION = exports.BLEND_DIFFERENCE = exports.BLEND_HARDLIGHT = exports.BLEND_LIGHTEN = exports.BLEND_DARKEN = exports.BLEND_OVERLAY = exports.BLEND_SCREEN = exports.BLEND_MULTIPLY = exports.BLEND_DESTINATION_OVER = exports.BLEND_SOURCE_OVER = exports.VERTICAL_ALIGN_BOTTOM = exports.VERTICAL_ALIGN_MIDDLE = exports.VERTICAL_ALIGN_TOP = exports.HORIZONTAL_ALIGN_RIGHT = exports.HORIZONTAL_ALIGN_CENTER = exports.HORIZONTAL_ALIGN_LEFT = exports.AUTO = void 0;
41877
+ exports.EDGE_CROP = exports.EDGE_WRAP = exports.EDGE_EXTEND = exports.BLEND_EXCLUSION = exports.BLEND_DIFFERENCE = exports.BLEND_HARDLIGHT = exports.BLEND_LIGHTEN = exports.BLEND_DARKEN = exports.BLEND_OVERLAY = exports.BLEND_SCREEN = exports.BLEND_ADD = exports.BLEND_MULTIPLY = exports.BLEND_DESTINATION_OVER = exports.BLEND_SOURCE_OVER = exports.VERTICAL_ALIGN_BOTTOM = exports.VERTICAL_ALIGN_MIDDLE = exports.VERTICAL_ALIGN_TOP = exports.HORIZONTAL_ALIGN_RIGHT = exports.HORIZONTAL_ALIGN_CENTER = exports.HORIZONTAL_ALIGN_LEFT = exports.AUTO = void 0;
41856
41878
  // used to auto resizing etc.
41857
41879
  var AUTO = -1; // Align modes for cover, contain, bit masks
41858
41880
 
@@ -41876,6 +41898,8 @@ var BLEND_DESTINATION_OVER = 'dstOver';
41876
41898
  exports.BLEND_DESTINATION_OVER = BLEND_DESTINATION_OVER;
41877
41899
  var BLEND_MULTIPLY = 'multiply';
41878
41900
  exports.BLEND_MULTIPLY = BLEND_MULTIPLY;
41901
+ var BLEND_ADD = 'add';
41902
+ exports.BLEND_ADD = BLEND_ADD;
41879
41903
  var BLEND_SCREEN = 'screen';
41880
41904
  exports.BLEND_SCREEN = BLEND_SCREEN;
41881
41905
  var BLEND_OVERLAY = 'overlay';
@@ -1,5 +1,5 @@
1
1
  /*
2
- Jimp v0.12.1
2
+ Jimp v0.13.0
3
3
  https://github.com/oliver-moran/jimp
4
4
  Ported for the Web by Phil Seaton
5
5
  MIT License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jimp",
3
- "version": "0.12.2-canary.899.952.0",
3
+ "version": "0.14.0",
4
4
  "description": "An image processing library written entirely in JavaScript (i.e. zero external or native dependencies)",
5
5
  "main": "dist/index.js",
6
6
  "module": "es/index.js",
@@ -60,9 +60,9 @@
60
60
  "license": "MIT",
61
61
  "dependencies": {
62
62
  "@babel/runtime": "^7.7.2",
63
- "@jimp/custom": "0.12.2-canary.899.952.0",
64
- "@jimp/plugins": "0.12.2-canary.899.952.0",
65
- "@jimp/types": "0.12.2-canary.899.952.0",
63
+ "@jimp/custom": "^0.14.0",
64
+ "@jimp/plugins": "^0.14.0",
65
+ "@jimp/types": "^0.14.0",
66
66
  "regenerator-runtime": "^0.13.3"
67
67
  },
68
68
  "devDependencies": {
@@ -72,7 +72,7 @@
72
72
  "@babel/plugin-syntax-object-rest-spread": "^7.2.0",
73
73
  "@babel/preset-env": "^7.7.1",
74
74
  "@babel/register": "^7.7.0",
75
- "@jimp/test-utils": "0.12.2-canary.899.952.0",
75
+ "@jimp/test-utils": "^0.14.0",
76
76
  "babel-eslint": "^10.0.3",
77
77
  "babel-plugin-add-module-exports": "^1.0.2",
78
78
  "babel-plugin-istanbul": "^5.2.0",
@@ -117,5 +117,5 @@
117
117
  "test/*.js"
118
118
  ]
119
119
  },
120
- "gitHead": "71319029e254af5900a70fe584994f086cba6766"
120
+ "gitHead": "777081348caf314a5f35d871702168c86ab2ca3b"
121
121
  }