For tolerance 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. For a RGB image the tolerance would
be within the range 0-442
public trim ( $colourSource = null, $tolerance = null ) |