# coding=UTF-8
import gtk
pb = gtk.gdk.pixbuf_new_from_file("sf.jpg")
pb.saturate_and_pixelate(pb, 0.2, False)
pb.save('sample1031a.jpg', 'jpeg', {'quality':'100'})
pb2 = gtk.gdk.pixbuf_new_from_file("sf.jpg")
pb2.saturate_and_pixelate(pb2, 2.0, False)
pb2.save('sample1031b.jpg', 'jpeg', {'quality':'100'})
元画像(sf.jpg)
出力画像(sample1031a.jpg)
出力画像2(sample1031b.jpg)
No comments:
Post a Comment