<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>art2nd</author_name>
  <author_url>https://blog.hatena.ne.jp/art2nd/</author_url>
  <blog_title>晴歩雨描</blog_title>
  <blog_url>https://2ndart.hatenablog.com/</blog_url>
  <categories>
    <anon>写真・カメラ</anon>
    <anon>ホームページ、Web作成</anon>
  </categories>
  <description>写真・画像をサムネイル表示する場合など、正方形にトリミングしたい場合がある。画像処理ソフトでトリミングする方法もあるが、Webブラウザで表示するのが目的なら、写真・画像はそのままでCSSでトリミングすることができる。imgタグに「object-fit: cover; 」を指定すればよい。 まず、imgに何も指定しない場合。縦長の写真。 次は、imgにwidthとheightのみ指定した場合。画像が上下に圧縮されている。 img { width: 180px; height: 180px; } 次は、imgにwidthとheight以外に「object-fit: cover;」を指定した場合。き…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F2ndart.hatenablog.com%2Fentry%2F2018%2F05%2F05%2F163731&quot; title=&quot;写真を正方形にトリミングする方法。画像処理しないでCSSのみでトリミング。 - 晴歩雨描&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/a/art2nd/20180505/20180505162503.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-05-05 16:37:31</published>
  <title>写真を正方形にトリミングする方法。画像処理しないでCSSのみでトリミング。</title>
  <type>rich</type>
  <url>https://2ndart.hatenablog.com/entry/2018/05/05/163731</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
