ruby - RMagick posterize and other does not work -
i guy's have write code:
require 'rmagick' include magick img = image.read("small_img.gif").first img.posterize img.display exit the result of image don't change i've tested blur_image, oil_paint, other don't work rotate! work form me, maybe have writed bad code? p.s. sorry bad english
this line
img.posterize returns new image object, not alter image in place. if following
new_img = img.posterize new_img.display you should see results of test.
the same applies lot of rmagic transformations.
Comments
Post a Comment