Skip to content
Squeegy edited this page Sep 12, 2010 · 2 revisions

trim

Trim off all the pixels around the image border that have the same color. Useful to get rid of extra fluff, and leave your image trimmed up to just the real content.

Example

@photo.operate do |image|
  image.trim
end

Back to Operators

Clone this wiki locally