This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Jason on 29/02/2016. | |
* | |
* constructor(public deepobserver:DeepObserver) { | |
* this.obsDisposer = this.deepobserver.observe(this, 'target', (n,o,p)=> | |
* { console.log('DATA CHANGED:', p, ':', o,'===>', n ); } | |
* } | |
* @bindable target:Object; | |
* | |
* To remove bindings, call this.obsDisposer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Resize an image | |
.DESCRIPTION | |
Resize an image based on a new given height or width or a single dimension and a maintain ratio flag. | |
The execution of this CmdLet creates a new file named "OriginalName_resized" and maintains the original | |
file extension | |
.PARAMETER Width | |
The new width of the image. Can be given alone with the MaintainRatio flag | |
.PARAMETER Height |