require 'RMagick'
include Magick
images = ImageList.new("sf2.jpg")
images[0] = images.fx("0.4*p")
images.modulate(1.2,0.2,1).
median_filter(2).
sepiatone(95).
write("sample1158a.png")
exit
元画像(sf2.jpg)
出力画像(sample1158a.png)
動作環境
ruby1.8.6, rmagick2.9.0
No comments:
Post a Comment