Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

sharp

Package Overview
Dependencies
Maintainers
1
Versions
156
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.12.1 to 0.12.2

27

binding.js

@@ -28,3 +28,3 @@ 'use strict';

var unpack = function(tarPath) {
var unpack = function(tarPath, done) {
var extractor = tar.Extract({

@@ -38,2 +38,5 @@ path: __dirname

}
if (typeof done === 'function') {
done();
}
});

@@ -59,5 +62,5 @@ fs.createReadStream(tarPath).on('error', error)

if (!isFile(vipsHeaderPath)) {
// Ensure 64-bit
if (process.arch !== 'x64') {
error('ARM and 32-bit systems require manual installation - please see http://sharp.dimens.io/en/stable/install/');
// Ensure Intel 64-bit or ARM
if (process.arch === 'ia32') {
error('Intel Architecture 32-bit systems require manual installation - please see http://sharp.dimens.io/en/stable/install/');
}

@@ -72,4 +75,5 @@ // Ensure libc >= 2.15

}
// Platform-specific .tar.gz
var tarFilename = ['libvips', process.env.npm_package_config_libvips, process.platform.substr(0, 3)].join('-') + '.tar.gz';
// Arch/platform-specific .tar.gz
var platform = (process.arch === 'arm') ? 'arm' : process.platform.substr(0, 3);
var tarFilename = ['libvips', process.env.npm_package_config_libvips, platform].join('-') + '.tar.gz';
var tarPath = path.join(__dirname, 'packaging', tarFilename);

@@ -79,6 +83,11 @@ if (isFile(tarPath)) {

} else {
// Download
tarPath = path.join(tmp, tarFilename);
// Download to per-process temporary file
tarPath = path.join(tmp, process.pid + '-' + tarFilename);
var tmpFile = fs.createWriteStream(tarPath).on('finish', function() {
unpack(tarPath);
unpack(tarPath, function() {
// Attempt to remove temporary file
try {
fs.unlinkSync(tarPath);
} catch (err) {}
});
});

@@ -85,0 +94,0 @@ var options = {

@@ -638,3 +638,3 @@ # API

Improves the performance of `resize`, `blur` and `sharpen` operations
by taking advantage of the SIMD vector unit of the CPU.
by taking advantage of the SIMD vector unit of the CPU, e.g. Intel SSE and ARM NEON.

@@ -654,3 +654,3 @@ * `enable`, if present, is a boolean where `true` enables and `false` disables the use of SIMD.

var simd = sharp.simd();
// simd is `true` is SIMD is currently enabled
// simd is `true` if SIMD is currently enabled
```

@@ -657,0 +657,0 @@

@@ -5,2 +5,20 @@ # Changelog

#### v0.12.2 - 16<sup>th</sup> January 2016
* Upgrade libvips to v8.2.0 for improved vips_shrink.
* Add pre-compiled libvips for ARMv6+ CPUs.
* Ensure 16-bit input images work with embed option.
[#325](https://github.com/lovell/sharp/issues/325)
[@janaz](https://github.com/janaz)
* Allow compilation with gmake to provide FreeBSD support.
[#326](https://github.com/lovell/sharp/issues/326)
[@c0decafe](https://github.com/c0decafe)
* Attempt to remove temporary file after installation.
[#331](https://github.com/lovell/sharp/issues/331)
[@dtoubelis](https://github.com/dtoubelis)
#### v0.12.1 - 12<sup>th</sup> December 2015

@@ -7,0 +25,0 @@

@@ -20,3 +20,3 @@ # Installation

Most recent 64-bit Linux-based operating systems should "just work", e.g.:
Most recent Linux-based operating systems running on x64 and ARMv6+ CPUs should "just work", e.g.:

@@ -26,5 +26,6 @@ * Debian 7, 8

* Centos 7
* Fedora 20, 21
* Fedora 21, 22, 23
* openSUSE 13.2
* Archlinux 2015.06.01
* Raspbian Jessie

@@ -35,3 +36,3 @@ Preference will be given to an existing globally-installed (via `pkg-config`)

For older and 32-bit Linux-based operating systems,
For older Linux-based operating systems and 32-bit Intel CPUs,
a system-wide installation of the most suitable version of

@@ -83,2 +84,11 @@ libvips and its dependencies can be achieved by running

### FreeBSD
libvips must be installed before `npm install` is run.
This can be achieved via [FreshPorts](https://www.freshports.org/graphics/vips/):
```sh
cd /usr/ports/graphics/vips/ && make install clean
```
### Heroku

@@ -85,0 +95,0 @@

{
"name": "sharp",
"version": "0.12.1",
"version": "0.12.2",
"author": "Lovell Fuller <npm@lovell.info>",

@@ -50,5 +50,5 @@ "contributors": [

"dependencies": {
"bluebird": "^3.0.5",
"color": "^0.10.1",
"nan": "^2.1.0",
"bluebird": "^3.1.1",
"color": "^0.11.1",
"nan": "^2.2.0",
"semver": "^5.1.0",

@@ -59,11 +59,11 @@ "request": "^2.67.0",

"devDependencies": {
"async": "^1.5.0",
"async": "^1.5.2",
"coveralls": "^2.11.6",
"exif-reader": "^1.0.0",
"icc": "^0.0.2",
"istanbul": "^0.4.0",
"istanbul": "^0.4.2",
"mocha": "^2.3.4",
"mocha-jshint": "^2.2.5",
"mocha-jshint": "^2.2.6",
"node-cpplint": "^0.4.0",
"rimraf": "^2.4.4",
"rimraf": "^2.5.0",
"bufferutil": "^1.2.1"

@@ -73,3 +73,3 @@ },

"config": {
"libvips": "8.1.1"
"libvips": "8.2.0"
},

@@ -76,0 +76,0 @@ "engines": {

@@ -16,3 +16,3 @@ # sharp

64-bit Windows and recent Linux systems do not require
Most Windows (x64), Linux and ARMv6+ systems do not require
the installation of any external runtime dependencies.

@@ -40,3 +40,3 @@

Copyright 2013, 2014, 2015 Lovell Fuller and contributors.
Copyright 2013, 2014, 2015, 2016 Lovell Fuller and contributors.

@@ -43,0 +43,0 @@ Licensed under the Apache License, Version 2.0 (the "License");

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc