🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

sharp

Package Overview
Dependencies
Maintainers
1
Versions
189
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sharp - npm Package Compare versions

Comparing version
0.34.3
to
0.34.4-rc.3
+2
-0
lib/channel.js

@@ -77,2 +77,4 @@ // Copyright 2013 Lovell Fuller and others.

*
* The output colourspace will be either `b-w` (8-bit) or `grey16` (16-bit).
*
* @example

@@ -79,0 +81,0 @@ * // green.jpg is a greyscale image containing the green channel of the input

+1
-1

@@ -6,3 +6,3 @@ // Copyright 2013 Lovell Fuller and others.

const color = require('color');
const color = require('@img/colour');
const is = require('./is');

@@ -9,0 +9,0 @@

@@ -233,3 +233,4 @@ // Copyright 2013 Lovell Fuller and others.

rotationBackground: [0, 0, 0, 255],
rotateBeforePreExtract: false,
rotateBefore: false,
orientBefore: false,
flip: false,

@@ -236,0 +237,0 @@ flop: false,

@@ -110,3 +110,3 @@ // Copyright 2013 Lovell Fuller and others.

function isRotationExpected (options) {
return (options.angle % 360) !== 0 || options.input.autoOrient === true || options.rotationAngle !== 0;
return (options.angle % 360) !== 0 || options.rotationAngle !== 0;
}

@@ -347,3 +347,3 @@

if (isRotationExpected(this.options) && isResizeExpected(this.options)) {
this.options.rotateBeforePreExtract = true;
this.options.rotateBefore = true;
}

@@ -495,5 +495,8 @@ return this;

if (this.options.widthPre === -1 || this.options.widthPost === -1) {
this.options.rotateBeforePreExtract = true;
this.options.rotateBefore = true;
}
}
if (this.options.input.autoOrient) {
this.options.orientBefore = true;
}
return this;

@@ -572,3 +575,3 @@ }

if (isRotationExpected(this.options)) {
this.options.rotateBeforePreExtract = true;
this.options.rotateBefore = true;
}

@@ -575,0 +578,0 @@ return this;

{
"name": "sharp",
"description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images",
"version": "0.34.3",
"version": "0.34.4-rc.3",
"author": "Lovell Fuller <npm@lovell.info>",

@@ -104,2 +104,3 @@ "homepage": "https://sharp.pixelplumbing.com",

"package-from-local-build": "node npm/from-local-build.js",
"package-release-notes": "node npm/release-notes.js",
"docs-build": "node docs/build.mjs",

@@ -140,52 +141,52 @@ "docs-serve": "cd docs && npm start",

"dependencies": {
"color": "^4.2.3",
"detect-libc": "^2.0.4",
"@img/colour": "^1.0.0",
"detect-libc": "^2.1.0",
"semver": "^7.7.2"
},
"optionalDependencies": {
"@img/sharp-darwin-arm64": "0.34.3",
"@img/sharp-darwin-x64": "0.34.3",
"@img/sharp-libvips-darwin-arm64": "1.2.0",
"@img/sharp-libvips-darwin-x64": "1.2.0",
"@img/sharp-libvips-linux-arm": "1.2.0",
"@img/sharp-libvips-linux-arm64": "1.2.0",
"@img/sharp-libvips-linux-ppc64": "1.2.0",
"@img/sharp-libvips-linux-s390x": "1.2.0",
"@img/sharp-libvips-linux-x64": "1.2.0",
"@img/sharp-libvips-linuxmusl-arm64": "1.2.0",
"@img/sharp-libvips-linuxmusl-x64": "1.2.0",
"@img/sharp-linux-arm": "0.34.3",
"@img/sharp-linux-arm64": "0.34.3",
"@img/sharp-linux-ppc64": "0.34.3",
"@img/sharp-linux-s390x": "0.34.3",
"@img/sharp-linux-x64": "0.34.3",
"@img/sharp-linuxmusl-arm64": "0.34.3",
"@img/sharp-linuxmusl-x64": "0.34.3",
"@img/sharp-wasm32": "0.34.3",
"@img/sharp-win32-arm64": "0.34.3",
"@img/sharp-win32-ia32": "0.34.3",
"@img/sharp-win32-x64": "0.34.3"
"@img/sharp-darwin-arm64": "0.34.4-rc.3",
"@img/sharp-darwin-x64": "0.34.4-rc.3",
"@img/sharp-libvips-darwin-arm64": "1.2.2",
"@img/sharp-libvips-darwin-x64": "1.2.2",
"@img/sharp-libvips-linux-arm": "1.2.2",
"@img/sharp-libvips-linux-arm64": "1.2.2",
"@img/sharp-libvips-linux-ppc64": "1.2.2",
"@img/sharp-libvips-linux-s390x": "1.2.2",
"@img/sharp-libvips-linux-x64": "1.2.2",
"@img/sharp-libvips-linuxmusl-arm64": "1.2.2",
"@img/sharp-libvips-linuxmusl-x64": "1.2.2",
"@img/sharp-linux-arm": "0.34.4-rc.3",
"@img/sharp-linux-arm64": "0.34.4-rc.3",
"@img/sharp-linux-ppc64": "0.34.4-rc.3",
"@img/sharp-linux-s390x": "0.34.4-rc.3",
"@img/sharp-linux-x64": "0.34.4-rc.3",
"@img/sharp-linuxmusl-arm64": "0.34.4-rc.3",
"@img/sharp-linuxmusl-x64": "0.34.4-rc.3",
"@img/sharp-wasm32": "0.34.4-rc.3",
"@img/sharp-win32-arm64": "0.34.4-rc.3",
"@img/sharp-win32-ia32": "0.34.4-rc.3",
"@img/sharp-win32-x64": "0.34.4-rc.3"
},
"devDependencies": {
"@emnapi/runtime": "^1.4.4",
"@img/sharp-libvips-dev": "1.2.0",
"@img/sharp-libvips-dev-wasm32": "1.2.0",
"@img/sharp-libvips-win32-arm64": "1.2.0",
"@img/sharp-libvips-win32-ia32": "1.2.0",
"@img/sharp-libvips-win32-x64": "1.2.0",
"@emnapi/runtime": "^1.5.0",
"@img/sharp-libvips-dev": "1.2.2",
"@img/sharp-libvips-dev-wasm32": "1.2.2",
"@img/sharp-libvips-win32-arm64": "1.2.2",
"@img/sharp-libvips-win32-ia32": "1.2.2",
"@img/sharp-libvips-win32-x64": "1.2.2",
"@types/node": "*",
"cc": "^3.0.1",
"emnapi": "^1.4.4",
"emnapi": "^1.5.0",
"exif-reader": "^2.0.2",
"extract-zip": "^2.0.1",
"icc": "^3.0.0",
"jsdoc-to-markdown": "^9.1.1",
"jsdoc-to-markdown": "^9.1.2",
"license-checker": "^25.0.1",
"mocha": "^11.7.1",
"node-addon-api": "^8.4.0",
"node-gyp": "^11.2.0",
"mocha": "^11.7.2",
"node-addon-api": "^8.5.0",
"node-gyp": "^11.4.2",
"nyc": "^17.1.0",
"semistandard": "^17.0.0",
"tar-fs": "^3.1.0",
"tsd": "^0.32.0"
"tsd": "^0.33.0"
},

@@ -197,3 +198,3 @@ "license": "Apache-2.0",

"config": {
"libvips": ">=8.17.1"
"libvips": ">=8.17.2"
},

@@ -200,0 +201,0 @@ "funding": {

@@ -399,2 +399,3 @@ // Copyright 2013 Lovell Fuller and others.

imageType == ImageType::SVG ||
imageType == ImageType::TIFF ||
imageType == ImageType::HEIF;

@@ -401,0 +402,0 @@ }

@@ -19,4 +19,4 @@ // Copyright 2013 Lovell Fuller and others.

(VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION < 17) || \
(VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION == 17 && VIPS_MICRO_VERSION < 1)
#error "libvips version 8.17.1+ is required - please see https://sharp.pixelplumbing.com/install"
(VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION == 17 && VIPS_MICRO_VERSION < 2)
#error "libvips version 8.17.2+ is required - please see https://sharp.pixelplumbing.com/install"
#endif

@@ -23,0 +23,0 @@

@@ -264,3 +264,2 @@ // Copyright 2013 Lovell Fuller and others.

if (baton->xmpLength > 0) {
info.Set("xmp", Napi::Buffer<char>::NewOrCopy(env, baton->xmp, baton->xmpLength, sharp::FreeCallback));
if (g_utf8_validate(static_cast<char const *>(baton->xmp), baton->xmpLength, nullptr)) {

@@ -270,2 +269,3 @@ info.Set("xmpAsString",

}
info.Set("xmp", Napi::Buffer<char>::NewOrCopy(env, baton->xmp, baton->xmpLength, sharp::FreeCallback));
}

@@ -272,0 +272,0 @@ if (baton->tifftagPhotoshopLength > 0) {

@@ -118,3 +118,4 @@ // Copyright 2013 Lovell Fuller and others.

std::vector<double> rotationBackground;
bool rotateBeforePreExtract;
bool rotateBefore;
bool orientBefore;
bool flip;

@@ -121,0 +122,0 @@ bool flop;

@@ -21,6 +21,4 @@ // Copyright 2013 Lovell Fuller and others.

for (auto domain : { "VIPS", "vips2tiff" }) {
g_log_set_handler(domain, static_cast<GLogLevelFlags>(G_LOG_LEVEL_WARNING),
static_cast<GLogFunc>(sharp::VipsWarningCallback), nullptr);
}
g_log_set_handler("VIPS", static_cast<GLogLevelFlags>(G_LOG_LEVEL_WARNING),
static_cast<GLogFunc>(sharp::VipsWarningCallback), nullptr);

@@ -27,0 +25,0 @@ // Methods available to JavaScript

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display