Comparing version 0.3.1 to 0.4.0
# Changelog | ||
## 0.4.1-dev | ||
## 0.4.0 (April 4, 2016) | ||
* Enhancement: add [`--extend`](http://sharp.dimens.io/en/stable/api/#extendextension) support. | ||
* Enhancement: add [`--overlayGravity`](http://sharp.dimens.io/en/stable/api/#overlaywithimage-options) support. | ||
* Enhancement: add [`--tileLayout`](http://sharp.dimens.io/en/stable/api/#tileoptions) support. | ||
* Enhancement: update dependencies, including `sharp` (`0.14.x`). | ||
## 0.3.1 (February 21, 2016) | ||
@@ -4,0 +12,0 @@ * Enhancement: update dependencies, including `sharp` (`0.13.x`). |
13
help.txt
@@ -19,2 +19,10 @@ Usage | ||
--embed Resize the image, then embed on a background. | ||
--extendTop <number> Pixels to add to the top edge. Use in conjunction with --extendLeft, | ||
--extendBottom, and --extendRight. | ||
--extendLeft <number> Pixels to add to the left edge. Use in conjunction with --extendTop, | ||
--extendBottom, and --extendRight. | ||
--extendBottom <number> Pixels to add to the bottom edge. Use in conjunction with | ||
--extendTop, --extendLeft, and --extendRight. | ||
--extendRight <number> Pixels to add to the right edge. Use in conjunction with --extendTop, | ||
--extendLeft, and --extendBottom. | ||
--extractHeight <number> Height of the region to be extracted. Use in conjunction with | ||
@@ -55,2 +63,4 @@ --extractLeft, --extractTop, and --extractWidth. | ||
--overlay <string> Alpha composite the specified file over the processed image. | ||
--overlayGravity <string> Place the overlay baed on the specified gravity (north, east, south, | ||
west, center). Use in conjunction with --overlay. | ||
--overshootDeringing Reduce the effects of ringing in JPEG output. | ||
@@ -71,2 +81,5 @@ --progressive Use progressive (interlace) scan for JPEG and PNG output. | ||
specifying a tile size between 1 and 8192. Defaults to 256 pixels. | ||
--tileLayout <string> Specifies the layout to use when generating square Deep Zoom image | ||
pyramid tyles (dz, zoomify, google). Defaults to dz. | ||
Use in conjunction with --tile. | ||
--tileOverlap <number> Specifies the tile overlap, between 0 and 8192. Defaults to 0 pixels. | ||
@@ -73,0 +86,0 @@ Use in conjunction with --tile. |
@@ -130,2 +130,11 @@ /*! | ||
// @see http://sharp.dimens.io/en/stable/api/#extendextension | ||
if(flags.extendTop || flags.extendLeft || flags.extendBottom || flags.extendRight) { | ||
var eTop = parseInt(flags.extendTop, 10), | ||
eLeft = parseInt(flags.extendLeft, 10), | ||
eBottom = parseInt(flags.extendBottom, 10), | ||
eRight = parseInt(flags.extendRight, 10); | ||
image.extend({ top: eTop, left: eLeft, bottom: eBottom, right: eRight }); | ||
} | ||
// @see http://sharp.dimens.io/en/stable/api/#rotateangle | ||
@@ -191,3 +200,3 @@ if(flags.rotate || '' === flags.rotate) { | ||
if(flags.overlay) { | ||
image.overlayWith(flags.overlay); | ||
image.overlayWith(flags.overlay, { gravity: flags.overlayGravity }); | ||
} | ||
@@ -220,6 +229,11 @@ | ||
// @see http://sharp.dimens.io/en/stable/api/#tilesize-overlap | ||
if(flags.tile || flags.tileOverlap) { | ||
var tile = true === flags.tile ? undefined : parseInt(flags.tile, 10), | ||
overlap = flags.tileOverlap ? parseInt(flags.tileOverlap, 10) : undefined; | ||
image.tile(tile, overlap); | ||
if(flags.tile) { | ||
var options = { layout: flags.tileLayout }; | ||
if(true !== flags.tile) { | ||
options.size = parseInt(flags.tile, 10); | ||
} | ||
if(flags.tileOverlap) { | ||
options.overlap = parseInt(flags.tileOverlap, 10); | ||
} | ||
image.tile(options); | ||
} | ||
@@ -226,0 +240,0 @@ |
{ | ||
"name" : "sharp-cli", | ||
"version" : "0.3.1", | ||
"version" : "0.4.0", | ||
"description" : "CLI for sharp.", | ||
@@ -17,3 +17,3 @@ "keywords" : [ "cli", "jpeg", "libvips", "png", "sharp", "vips", "webp" ], | ||
"dependencies": { | ||
"bluebird" : "3.1.x", | ||
"bluebird" : "3.3.x", | ||
"glob" : "7.0.x", | ||
@@ -23,3 +23,3 @@ "is-file" : "1.0.x", | ||
"mkdir-p" : "0.0.x", | ||
"sharp" : "0.13.x", | ||
"sharp" : "0.14.x", | ||
"sponge" : "0.1.x" | ||
@@ -26,0 +26,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31582
396
+ Addedbluebird@3.3.5(transitive)
+ Addedsharp@0.14.1(transitive)
- Removedbluebird@3.1.53.7.2(transitive)
- Removedsharp@0.13.1(transitive)
Updatedbluebird@3.3.x
Updatedsharp@0.14.x