lib/url/imageurl.js
function(options) {
        options = options || {};

        var params = [
            'color=' + (options.color || '000000').replace(/^#/, ''),
            'width=' + toInt(options.width || 1),
            'height=' + toInt(options.height || 1),
            'mode=' + (options.mode || 'outbound')
        ];

        return this.append('border:' + params.join(','));
    }
function(options) {
        options = options || {};

        var params = [
            'color=' + (options.color || '000000').replace(/^#/, ''),
            'width=' + toInt(options.width || 1),
            'height=' + toInt(options.height || 1),
            'mode=' + (options.mode || 'outbound')
        ];

        return this.append('border:' + params.join(','));
    }
function ( options ) { options = options || { } ; var params = [ 'color=' + ( options . color || '000000' ) . replace ( / ^# / , '' ) , 'width=' + toInt ( options . width || 1 ) , 'height=' + toInt ( options . height || 1 ) , 'mode=' + ( options . mode || 'outbound' ) ] ; return this . append ( 'border:' + params . join ( ',' ) ) ; }
Add a border to the image

@param  {Object} [options={}]
@param  {String} [options.color=000000]  Color of the border (in hex-format)
@param  {Number} [options.width=1]       Width of the left and right borders
@param  {Number} [options.height=1]      Height of the top and bottom borders
@param  {String} [options.mode=outbound] Mode of the border, "inline" or "outbound"
@return {Imbo.ImageUrl}
Add a border to the image