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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -