<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mas-higa</author_name>
  <author_url>https://blog.hatena.ne.jp/mas-higa/</author_url>
  <blog_title>ひがきの日記</blog_title>
  <blog_url>https://mas-higa.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>年賀状に使いたい素材があったのだけど、色が気にくわない。筆文字なので黒なんだろうけど、それを金色っぽくしたい。そんなときは ImageMagick の convert $ convert -fill '#ffdf36' -opaque '#000000' src.png dst.pngとかすると、黒が黄色っぽくなる。 ところが、境界線のあたりがうまく変更できない。 境界付近はぼかしがかかって真黒ではないから。-fuzz 50% とかするといいらしいが、やっぱり何か気にくわない。RMagick で bit 演算したら完璧にできんじゃないの? と思ってやってみた。 require 'RMagick…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmas-higa.hatenadiary.org%2Fentry%2F20100101%2F1262273316&quot; title=&quot;RMagick で色を変更 - ひがきの日記&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/m/mas-higa/20091231/20091231210603.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-01-01 00:28:36</published>
  <title>RMagick で色を変更</title>
  <type>rich</type>
  <url>https://mas-higa.hatenadiary.org/entry/20100101/1262273316</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
