Class: Fleximage::Operator::Trim

Inherits:
Base
  • Object
show all
Defined in:
lib/fleximage/operator/trim.rb

Overview

Trim off all the pixels around the image border that have the same color.

image.trim

Instance Method Summary collapse

Methods inherited from Base

#color, color, #execute, #initialize, #scale, #scale_and_crop, size_to_xy, #size_to_xy, #stretch, #symbol_to_blending_mode, #symbol_to_gravity

Constructor Details

This class inherits a constructor from Fleximage::Operator::Base

Instance Method Details

#operateObject



8
9
10
# File 'lib/fleximage/operator/trim.rb', line 8

def operate()
  @image.trim!(true)
end