Corp image with ruby
问题 I try to corp an image how you can see in my last line of code i trigger: p.corp!(0,0,p.width,black_last).save('bearbeitet.png') But somehow i get this error: bild.rb:29:in `<main>': undefined method `corp!' for #<ChunkyPNG::Canvas:0x24f34 50> (NoMethodError) Why? The docu for corp: http://rdoc.info/gems/chunky_png/ChunkyPNG/Canvas/Operations#crop-instance_method My whole code: Thanks! require 'mini_magick' require 'chunky_png' i = MiniMagick::Image.open("a.jpg") i.format('png') p = ChunkyPNG