{"url":"https://sandriver.hatenadiary.org/entry/20090428/1240930707","categories":["ruby"],"blog_url":"https://sandriver.hatenadiary.org/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsandriver.hatenadiary.org%2Fentry%2F20090428%2F1240930707\" title=\"RMagick\u3067\u30e2\u30b6\u30a4\u30af\u51e6\u7406\u3092\u3057\u3066\u307f\u305f\u3002 - None.\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/S/SandRiver/20090428/20090428235607.jpg","width":"100%","title":"RMagick\u3067\u30e2\u30b6\u30a4\u30af\u51e6\u7406\u3092\u3057\u3066\u307f\u305f\u3002","blog_title":"None.","author_name":"SandRiver","provider_url":"https://hatena.blog","description":"\u50cf\u3002 \u30e2\u30b6\u30a4\u30af\u51e6\u7406\u3092\u3057\u3066\u307f\u305f\u3002 \u4f8b\u3048\u3070\u30e2\u30b6\u30a4\u30af\u306e\u5358\u4f4d\u30925\u30d4\u30af\u30bb\u30eb\u306b\u3059\u308b\u5834\u5408 \u7e265\u30d4\u30af\u30bb\u30eb\u3001\u6a2a5\u30d4\u30af\u30bb\u30eb\u306e5*5\u30de\u30b9\u306eRGB\u5024\u5e73\u5747\u5024\u3092\u7b97\u51fa\u3002 \u8a72\u5f53\u7bc4\u56f2\u3092\u305d\u306e\u8272\u3067\u5857\u308a\u3064\u3076\u3059\u3002 require 'rubygems' require \"RMagick\" include Magick def mozaic(image, filename, per) img = ImageList.new(image) px = (img.columns / per).ceil py = (img.rows / per).ceil for y in 0...py+1 for x in 0...px+1 tx = x * \u2026","author_url":"https://blog.hatena.ne.jp/SandRiver/","type":"rich","provider_name":"Hatena Blog","height":"190","published":"2009-04-28 23:58:27","version":"1.0"}