@revizly/sharp 0.33.2-revizly6 → 0.33.2-revizly8

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,14 +40,16 @@ const debuglog = util.debuglog('sharp');
40
40
  * });
41
41
  *
42
42
  * @example
43
- * // Read image data from readableStream,
43
+ * // Read image data from remote URL,
44
44
  * // resize to 300 pixels wide,
45
45
  * // emit an 'info' event with calculated dimensions
46
46
  * // and finally write image data to writableStream
47
- * var transformer = sharp()
47
+ * const { body } = fetch('https://...');
48
+ * const readableStream = Readable.fromWeb(body);
49
+ * const transformer = sharp()
48
50
  * .resize(300)
49
- * .on('info', function(info) {
50
- * console.log('Image height is ' + info.height);
51
+ * .on('info', ({ height }) => {
52
+ * console.log(`Image height is ${height}`);
51
53
  * });
52
54
  * readableStream.pipe(transformer).pipe(writableStream);
53
55
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@revizly/sharp",
3
3
  "description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images",
4
- "version": "0.33.2-revizly6",
4
+ "version": "0.33.2-revizly8",
5
5
  "author": "Lovell Fuller <npm@lovell.info>",
6
6
  "homepage": "https://sharp.pixelplumbing.com",
7
7
  "contributors": [
@@ -115,7 +115,7 @@
115
115
  ],
116
116
  "repository": {
117
117
  "type": "git",
118
- "url": "git://github.com/lovell/sharp.git"
118
+ "url": "git://github.com/janaz/sharp.git"
119
119
  },
120
120
  "keywords": [
121
121
  "jpeg",
@@ -138,50 +138,37 @@
138
138
  "dependencies": {
139
139
  "color": "^4.2.3",
140
140
  "detect-libc": "^2.0.2",
141
- "semver": "^7.5.4"
141
+ "semver": "^7.6.0"
142
142
  },
143
143
  "optionalDependencies": {
144
144
  "@revizly/sharp-darwin-arm64": "0.33.2",
145
145
  "@revizly/sharp-darwin-x64": "0.33.2",
146
- "@revizly/sharp-libvips-darwin-arm64": "1.0.1",
147
- "@revizly/sharp-libvips-darwin-x64": "1.0.1",
148
- "@revizly/sharp-libvips-linux-arm": "1.0.1",
149
146
  "@revizly/sharp-libvips-linux-arm64": "1.0.2",
150
- "@revizly/sharp-libvips-linux-s390x": "1.0.1",
151
147
  "@revizly/sharp-libvips-linux-x64": "1.0.2",
152
- "@revizly/sharp-libvips-linuxmusl-arm64": "1.0.1",
153
- "@revizly/sharp-libvips-linuxmusl-x64": "1.0.1",
154
- "@revizly/sharp-linux-arm": "0.33.2",
155
- "@revizly/sharp-linux-arm64": "0.33.2",
156
- "@revizly/sharp-linux-s390x": "0.33.2",
157
- "@revizly/sharp-linux-x64": "0.33.2",
158
- "@revizly/sharp-linuxmusl-arm64": "0.33.2",
159
- "@revizly/sharp-linuxmusl-x64": "0.33.2",
160
- "@revizly/sharp-wasm32": "0.33.2",
161
- "@revizly/sharp-win32-ia32": "0.33.2",
162
- "@revizly/sharp-win32-x64": "0.33.2"
148
+ "@revizly/sharp-linux-arm64": "0.33.2-revizly7",
149
+ "@revizly/sharp-linux-x64": "0.33.2-revizly7"
163
150
  },
164
151
  "devDependencies": {
165
- "@emnapi/runtime": "^0.45.0",
152
+ "@emnapi/runtime": "^1.0.0",
166
153
  "@revizly/sharp-libvips-dev": "1.0.2",
167
154
  "@revizly/sharp-libvips-win32-ia32": "1.0.1",
168
155
  "@revizly/sharp-libvips-win32-x64": "1.0.1",
169
156
  "@types/node": "*",
170
157
  "async": "^3.2.5",
171
158
  "cc": "^3.0.1",
172
- "emnapi": "^0.45.0",
159
+ "emnapi": "^1.0.0",
173
160
  "exif-reader": "^2.0.1",
174
161
  "extract-zip": "^2.0.1",
175
162
  "icc": "^3.0.0",
176
163
  "jsdoc-to-markdown": "^8.0.1",
177
164
  "license-checker": "^25.0.1",
178
- "mocha": "^10.2.0",
165
+ "mocha": "^10.3.0",
179
166
  "node-addon-api": "^7.1.0",
180
167
  "nyc": "^15.1.0",
181
168
  "prebuild": "^13.0.0",
182
169
  "semistandard": "^17.0.0",
183
- "tar-fs": "^3.0.4",
184
- "tsd": "^0.30.4"
170
+ "tar-fs": "^3.0.5",
171
+ "tsd": "^0.30.6"
185
172
  },
186
173
  "license": "Apache-2.0",
187
174
  "engines": {
package/src/pipeline.cc CHANGED
@@ -778,7 +778,7 @@ class PipelineWorker : public Napi::AsyncWorker {
778
778
  // Transform colours from embedded profile to output profile
779
779
  if ((baton->keepMetadata & VIPS_FOREIGN_KEEP_ICC) && baton->colourspaceInput != VIPS_INTERPRETATION_CMYK &&
780
780
  baton->withIccProfile.empty() && sharp::HasProfile(image)) {
781
- image = image.icc_transform("srgb", VImage::option()
781
+ image = image.icc_transform(processingProfile, VImage::option()
782
782
  ->set("embedded", TRUE)
783
783
  ->set("depth", sharp::Is16Bit(image.interpretation()) ? 16 : 8)
784
784
  ->set("intent", VIPS_INTENT_PERCEPTUAL));