<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>SandRiver</author_name>
  <author_url>https://blog.hatena.ne.jp/SandRiver/</author_url>
  <blog_title>None.</blog_title>
  <blog_url>https://sandriver.hatenadiary.org/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>像。 モザイク処理をしてみた。 例えばモザイクの単位を5ピクセルにする場合 縦5ピクセル、横5ピクセルの5*5マスのRGB値平均値を算出。 該当範囲をその色で塗りつぶす。 require 'rubygems' require &quot;RMagick&quot; 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 * …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsandriver.hatenadiary.org%2Fentry%2F20090428%2F1240930707&quot; title=&quot;RMagickでモザイク処理をしてみた。 - None.&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/S/SandRiver/20090428/20090428235607.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-04-28 23:58:27</published>
  <title>RMagickでモザイク処理をしてみた。</title>
  <type>rich</type>
  <url>https://sandriver.hatenadiary.org/entry/20090428/1240930707</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
