<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>i2bskn</author_name>
  <author_url>https://blog.hatena.ne.jp/i2bskn/</author_url>
  <blog_title>i2bskn blog</blog_title>
  <blog_url>https://i2bskn.com/</blog_url>
  <categories>
    <anon>JavaScript/TypeScript</anon>
    <anon>Snippet</anon>
  </categories>
  <description>サンプルコード canvasに画像を読み込むサンプルコードです。 以下では画像を読み込み、canvasを読み込んだ画像と同じサイズに設定してcanvasに読み込んだ画像をそのまま描画しています。 &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot;/&gt; &lt;style&gt; body { display: flex; justify-content: center; align-items: center; min-height: 100vh; } #canvas { border: solid 1px; } &lt;/style&gt; &lt;/head&gt; &lt;bo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fi2bskn.com%2Fentry%2Fimage_resize_and_trim_js&quot; title=&quot;canvasで画像のリサイズ・トリミングする - i2bskn blog&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-03-24 16:23:21</published>
  <title>canvasで画像のリサイズ・トリミングする</title>
  <type>rich</type>
  <url>https://i2bskn.com/entry/image_resize_and_trim_js</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
