code: 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;
    }
docs: Removing surrounding space in image. Get trim color from specified pixel.
  @param value orientation from where to get the pixel color.
  @param colorTolerance 0 - 442. This is the euclidian distance
  between the colors of the reference pixel and the surrounding pixels is used.
  If the distance is within the tolerance they'll get trimmed.