public ThumborUrlBuilder trim ( TrimPixelColor value , int colorTolerance ) { if ( colorTolerance < 0 || colorTolerance > 442 ) { throw new IllegalArgumentException ( "Color tolerance must be between 0 and 442." ) ; } if ( colorTolerance > 0 && value == null ) { throw new IllegalArgumentException ( "Trim pixel color value must not be null." ) ; } isTrim = true ; trimPixelColor = value ; trimColorTolerance = colorTolerance ; return this ; }
Removing surrounding space in image . Get trim color from specified pixel .