<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>メディアライブラリ &#8211; WordPress Memo</title>
	<atom:link href="https://blog.riverforest-wp.info/tag/%E3%83%A1%E3%83%87%E3%82%A3%E3%82%A2%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.riverforest-wp.info</link>
	<description>WordPress に関する覚え書き</description>
	<lastBuildDate>Fri, 09 May 2025 12:48:53 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://blog.riverforest-wp.info/wp-content/uploads/2018/05/cropped-icon-256x256-1-32x32.png</url>
	<title>メディアライブラリ &#8211; WordPress Memo</title>
	<link>https://blog.riverforest-wp.info</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>コンテンツのバックアップ・引越しプラグイン</title>
		<link>https://blog.riverforest-wp.info/moving-contents/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Mon, 22 Mar 2021 12:01:21 +0000</pubDate>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[カテゴリ]]></category>
		<category><![CDATA[タクソノミー]]></category>
		<category><![CDATA[メディアライブラリ]]></category>
		<category><![CDATA[固定ページ]]></category>
		<category><![CDATA[引っ越し]]></category>
		<category><![CDATA[投稿]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=2600</guid>

					<description><![CDATA[以下の様なツイートをしたばかりなのですが、WordPress 標準のインポート・エクスポートが微妙に使いづらいので、バックアップ・引越し用のプラグイン Moving Contents を作ってしまいました。1年前に作った [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>以下の様なツイートをしたばかりなのですが、WordPress 標準のインポート・エクスポートが微妙に使いづらいので、バックアップ・引越し用のプラグイン <strong>Moving Contents</strong> を作ってしまいました。1年前に作った、メディライブラリの引越しプラグイン <strong>Moving Media Library</strong> の拡張版です。<strong>Moving Media Library</strong> の機能を含みます</p>



<figure class="wp-block-embed is-type-rich is-provider-twitter wp-block-embed-twitter"><div class="wp-block-embed__wrapper">
<blockquote class="twitter-tweet" data-width="500" data-dnt="true"><p lang="ja" dir="ltr">WordPress のバックアップをプラグインでやる方多いが、スクリプトで書いて、サーバーの cron に登録した方が簡単だし復元も容易。バックアップをネットから見えない場所に置く事も可能。3日単位くらいで上書きさせていく事も可能。良い事づくし。</p>&mdash; Katsushi Kawamori (@dodesyo312) <a href="https://twitter.com/dodesyo312/status/1372911994550951939?ref_src=twsrc%5Etfw">March 19, 2021</a></blockquote><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div></figure>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/moving-contents/assets/icon-256x256.png?rev=2502023" alt="Moving Contents のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/moving-contents/" class="pluginstatsview-astyle">Moving Contents</a></div>
			<div class="pluginstatsview-small">サーバー間でのコンテンツの転送をサポートします。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/moving-contents/#reviews" title="4.5(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-half"></span>
			</span>
	</a>(2)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">70以上サイトで有効化中</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/moving-contents.1.13.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2021-03-23</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:30 時点の統計	</div>
</div>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/moving-media-library/assets/icon-256x256.png?rev=2294754" alt="Moving Media Library のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/moving-media-library/" class="pluginstatsview-astyle">Moving Media Library</a></div>
			<div class="pluginstatsview-small">サーバー間でのメディアライブラリの転送をサポートします。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/moving-media-library/#reviews" title="4.6(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-half"></span>
			</span>
	</a>(30)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">2,000以上サイトで有効化中</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/moving-media-library.1.24.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2020-04-29</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:29 時点の統計	</div>
</div>
</div>
</div>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img fetchpriority="high" loading="eager" decoding="async" width="826" height="701" data-id="2616" src="https://blog.riverforest-wp.info/wp-content/uploads/20210324/screenshot-1.png" alt="" class="wp-image-2616" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20210324/screenshot-1.png 826w, https://blog.riverforest-wp.info/wp-content/uploads/20210324/screenshot-1-300x255.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20210324/screenshot-1-768x652.png 768w" sizes="(max-width: 826px) 100vw, 826px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="788" height="694" data-id="2617" src="https://blog.riverforest-wp.info/wp-content/uploads/20210324/screenshot-2.png" alt="" class="wp-image-2617"/></figure>
</figure>



<h3 class="wp-block-heading">概要</h3>



<p>サーバー間でのコンテンツの転送をサポートします。</p>



<p>= エクスポート =</p>



<ul class="wp-block-list">
<li>データベースを JSON 形式のファイルとして出力します。</li>



<li>エクスポートした JSON ファイルをメールで送信します。</li>
</ul>



<p>= インポート =</p>



<ul class="wp-block-list">
<li>エクスポートされた JSON 形式のファイルを読み込み、データベースに出力します。</li>



<li>コンテンツのユーザ ID を現在のユーザ ID に置換するオプションがあります。</li>



<li>全コンテンツの URL を置換するオプションがあります。</li>
</ul>



<p>＝ 以下を維持します ＝</p>



<ul class="wp-block-list">
<li>ID</li>



<li>ユーザーID</li>



<li>日付と時刻</li>



<li>投稿</li>



<li>固定ページ</li>



<li>コメント</li>



<li>カテゴリー</li>



<li>タグ</li>



<li>タクソノミー</li>



<li>メディアライブラリ（データベースのみ）</li>
</ul>



<h3 class="wp-block-heading">使用方法</h3>



<ol class="wp-block-list">
<li>引っ越し元と、引っ越し先にプラグインをインストールします。</li>



<li>引っ越し元で、<strong>エクスポート</strong>します。コンテンツ関連のデータベースのデータを <strong>JSON ファイル</strong>にまとめて出力します。</li>



<li>メディアライブラリのメディアファイルは引っ越し元から、<strong>wp-content/uploads</strong> 以下のメディアファイルを、<strong>引っ越し先にコピー</strong>します。この作業はプラグインで行わないため、各自様々な手段で行ってください。</li>



<li>引っ越し先で、<strong>JSON ファイル</strong>を読みこんで<strong>インポート</strong>します。</li>



<li><strong>インポート</strong>する際に、引越し元のサイトのユーザー ID を引越し先のサイトのユーザー ID に指定して変換する事ができます。</li>



<li>引越し元のコンテンツ中にある URL を、引越し先のサイトの URL に指定して一括変換する事ができます。</li>



<li><strong><span class="has-inline-color has-accent-color-color">注意</span></strong><span class="has-inline-color has-accent-color-color">：インポートする直前に、引越し先のサイトのデータベースをすべてクリアします。</span></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>PNG ファイルを圧縮するプラグイン</title>
		<link>https://blog.riverforest-wp.info/png-compress/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Wed, 19 Aug 2020 23:33:52 +0000</pubDate>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[PNG]]></category>
		<category><![CDATA[メディアライブラリ]]></category>
		<category><![CDATA[圧縮]]></category>
		<category><![CDATA[画質]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=2429</guid>

					<description><![CDATA[はじめに Twitter で以下のつぶやきを見つけました。 TinyPNG は、劣化がほとんど無く大幅な圧縮率を誇るサービスです。その画像を WordPress のメディアライブラリに新規追加すると、メディアライブラリに [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">はじめに</h3>



<p>Twitter で以下のつぶやきを見つけました。</p>



<figure class="wp-block-embed-twitter wp-block-embed is-type-rich is-provider-twitter"><div class="wp-block-embed__wrapper">
<blockquote class="twitter-tweet" data-width="500" data-dnt="true"><p lang="ja" dir="ltr">TinyPNGかけてアップロードした画像がWordPressでpxサイズ変更のエンコードされてpxサイズは小さくなっているのにファイルサイズが大きくなっているのえ、ちょっと待って状態</p>&mdash; つぶ (@tbshiki) <a href="https://twitter.com/tbshiki/status/1294089891395993600?ref_src=twsrc%5Etfw">August 14, 2020</a></blockquote><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div></figure>



<p><strong>TinyPNG</strong> は、劣化がほとんど無く大幅な圧縮率を誇るサービスです。その画像を WordPress のメディアライブラリに新規追加すると、メディアライブラリに作成されるサムネイルの方が大きなサイズになってしまいます！<strong>TinyPNG</strong> にアカウントを作成し、有償でそのサービスを使いサムネイルまで生成するようなプラグインも出ていますが、面倒です。そこで、少し画像は劣化してもかまわないから、サイズを圧縮したいという方向けにプラグインを作成してみました。</p>



<style>
.simpleblogcard_img_blockf541bbfb7bdcd2811c59d0d758858215 {
  float: right;
  padding: 10px;
}
.simpleblogcard_borderf541bbfb7bdcd2811c59d0d758858215 {
  border-left: solid 8px #cd162c;
  padding: 0.25em 0.25em;
  background: transparent;
}
.simpleblogcard_titlef541bbfb7bdcd2811c59d0d758858215 {
  line-height: 155%;
  font-weight: bold;
  display: block;
}
.simpleblogcard_descriptionf541bbfb7bdcd2811c59d0d758858215 {
  line-height: 155%;
  color: #333;
}
</style>
<div class="simpleblogcard_wrap">
			<a style="text-decoration: none;" href=https://tinypng.com/>
				<figure class="simpleblogcard_img_blockf541bbfb7bdcd2811c59d0d758858215">
			<img decoding="async" style="border-radius: 5px; width: 170px; height: 85px;" src="https://tinypng.com/images/social/website.jpg" alt="TinyPNG – Compress WebP, PNG and JPEG images intelligently" />
		</figure>
		<div class="simpleblogcard_inner">
		<div class="simpleblogcard_borderf541bbfb7bdcd2811c59d0d758858215">
			tinypng.com			<div class="simpleblogcard_titlef541bbfb7bdcd2811c59d0d758858215">
				TinyPNG – Compress WebP, PNG and JPEG images intelligently			</div>
							<div class="simpleblogcard_descriptionf541bbfb7bdcd2811c59d0d758858215">
					Free online image optimizer for faster websites! Reduce the file size of your WEBP, JPEG a&#8230;				</div>
					</div>
	</div>
	<div style="clear: both;"></div>
	</a>
</div>



<p>また、JPEG 用に、画質を変更するフィルター <strong>jpeg_quality</strong> があるのですが、PNG は無いのでプラグインでフィルターも提供するようにしました。</p>



<style>
.simpleblogcard_img_block8e37a42c3de936916ec00246e668373a {
  float: right;
  padding: 10px;
}
.simpleblogcard_border8e37a42c3de936916ec00246e668373a {
  border-left: solid 8px #cd162c;
  padding: 0.25em 0.25em;
  background: transparent;
}
.simpleblogcard_title8e37a42c3de936916ec00246e668373a {
  line-height: 155%;
  font-weight: bold;
  display: block;
}
.simpleblogcard_description8e37a42c3de936916ec00246e668373a {
  line-height: 155%;
  color: #333;
}
</style>
<div class="simpleblogcard_wrap">
			<a style="text-decoration: none;" href=https://developer.wordpress.org/reference/hooks/jpeg_quality/>
				<figure class="simpleblogcard_img_block8e37a42c3de936916ec00246e668373a">
			<img decoding="async" style="border-radius: 5px; width: 100px; height: 52px;" src="https://developer.wordpress.org/wp-content/themes/wporg-developer-2023/images/opengraph-image.png" alt="jpeg_quality – Hook | Developer.WordPress.org" />
		</figure>
		<div class="simpleblogcard_inner">
		<div class="simpleblogcard_border8e37a42c3de936916ec00246e668373a">
			developer.wordpress.org			<div class="simpleblogcard_title8e37a42c3de936916ec00246e668373a">
				jpeg_quality – Hook | Developer.WordPress.org			</div>
							<div class="simpleblogcard_description8e37a42c3de936916ec00246e668373a">
					Filters the JPEG compression quality for backward-compatibility.				</div>
					</div>
	</div>
	<div style="clear: both;"></div>
	</a>
</div>



<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/png-compress/assets/icon-256x256.png?rev=2365345" alt="Png Compress のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/png-compress/" class="pluginstatsview-astyle">Png Compress</a></div>
			<div class="pluginstatsview-small">PNG ファイル圧縮。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/png-compress/#reviews" title="0.0(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span>
			</span>
	</a>(0)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">2,795ダウンロード</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/png-compress.1.05.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2020-08-19</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:29 時点の統計	</div>
</div>



<p></p>



<h3 class="wp-block-heading">概要</h3>



<ul class="wp-block-list"><li>メディアライブラリに PNG ファイルを追加する際に PNG ファイルを圧縮します。</li><li>品質を指定できます。</li><li>圧縮率を指定できます。</li></ul>



<h3 class="wp-block-heading">使用方法</h3>



<ul class="wp-block-list"><li>PHP で PNG を圧縮する関数は、デフォルトではたいした圧縮ができないため、一度、JPEG に変換しそこで画質を調整し、PNG に戻して圧縮するという２段階の方式をとっています。そのために、JPEG の中間ファイルの画質調整と、PNG の圧縮率調整が必要になります。また、それぞれのフィルターを提供します。<ul><li>JPEG 中間ファイルフィルター（0～100を指定）<ul><li>add_filter( &#8216;tmp_jpg_quality&#8217;, function(){ return 80; }, 10, 1 );</li></ul></li></ul><ul><li>PNG 圧縮率フィルター（0～9を指定）<ul><li>add_filter( &#8216;png_quality&#8217;, function(){ return 9; }, 10, 1 );</li></ul></li></ul></li><li>アップロードした元のファイルの圧縮の可否を指定できます。</li></ul>



<h3 class="wp-block-heading">スクリーンショット</h3>



<figure data-wp-context="{&quot;imageId&quot;:&quot;69cc635aa1cd0&quot;}" data-wp-interactive="core/image" data-wp-key="69cc635aa1cd0" class="wp-block-image size-large wp-lightbox-container"><img decoding="async" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" src="https://ps.w.org/png-compress/assets/screenshot-1.png" alt=""/><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>サーバー上のファイルをメディアライブラリに一括登録するプラグイン</title>
		<link>https://blog.riverforest-wp.info/bulk-media-register/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Tue, 02 Jun 2020 00:20:47 +0000</pubDate>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[アップロード]]></category>
		<category><![CDATA[ファイル]]></category>
		<category><![CDATA[メディアライブラリ]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=2375</guid>

					<description><![CDATA[はじめに Media from FTP という私の作ったプラグインがあります。７年前に作ったものです。当時、メディアアップローダーでメディアファイルをアップロードする時に、上限のファイルサイズが 5Mb で、5Mb 以上 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">はじめに</h3>



<p><strong>Media from FTP</strong> という私の作ったプラグインがあります。<strong>７年前</strong>に作ったものです。当時、メディアアップローダーでメディアファイルをアップロードする時に、上限のファイルサイズが 5Mb で、5Mb 以上のファイルをアップロードできませんでした。そのため、ファイルを FTP でアップロードし、それをデータベースに登録させるプラグインとして開発しました。</p>



<p>現在の上限ファイルサイズは 64Mb で、それを上下させる事もできます。そのあたりはどのサーバーでも上限が上がってきています。にもかかわらず、未だに <strong>Media from FTP</strong> が使われ続けています。最近のサポートフォーラムやレビューを調べてみると、主に以下の２つの目的で利用されている事が見えてきました。</p>



<ol class="wp-block-list">
<li>WordPress 間のメディアライブラリの引越し</li>



<li>別の CMS 等から WordPress のメディアライブラリへの引越し</li>
</ol>



<p>現在の <strong>Media from FTP</strong> は検索画面上でファイルを選択してメディアライブラリに登録するという形になっています。上記の２点は、大量の画像を処理します。大量のデータを処理する場合、ファイルを選択したりするのは時間の浪費になります。</p>



<p>そこで、<strong>Media from FTP</strong> から２つの機能を分離し、２つのプラグインにしました。</p>



<p>1.に関しては、<strong>Moving Media Library</strong>、2.に関しては、今回紹介する、<strong>Bulk Media Register</strong> です。</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<style>
.simpleblogcard_img_block90d5137d7e83acefa03db1785368ee17 {
  float: right;
  padding: 10px;
}
.simpleblogcard_border90d5137d7e83acefa03db1785368ee17 {
  border-left: solid 8px #cd162c;
  padding: 0.25em 0.25em;
  background: transparent;
}
.simpleblogcard_title90d5137d7e83acefa03db1785368ee17 {
  line-height: 155%;
  font-weight: bold;
  display: block;
}
.simpleblogcard_description90d5137d7e83acefa03db1785368ee17 {
  line-height: 155%;
  color: #333;
}
</style>
<div class="simpleblogcard_wrap">
			<a style="text-decoration: none;" href=https://ja.wordpress.org/plugins/media-from-ftp/>
			<div class="simpleblogcard_inner">
		<div class="simpleblogcard_border90d5137d7e83acefa03db1785368ee17">
			ja.wordpress.org			<div class="simpleblogcard_title90d5137d7e83acefa03db1785368ee17">
				Media from FTP – WordPress プラグイン | WordPress.org 日本語			</div>
							<div class="simpleblogcard_description90d5137d7e83acefa03db1785368ee17">
					FTPでアップロードされたファイルからメディアライブラリに登録します。				</div>
					</div>
	</div>
	<div style="clear: both;"></div>
	</a>
</div>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/moving-media-library/assets/icon-256x256.png?rev=2294754" alt="Moving Media Library のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/moving-media-library/" class="pluginstatsview-astyle">Moving Media Library</a></div>
			<div class="pluginstatsview-small">サーバー間でのメディアライブラリの転送をサポートします。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/moving-media-library/#reviews" title="4.6(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-half"></span>
			</span>
	</a>(30)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">2,000以上サイトで有効化中</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/moving-media-library.1.24.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2020-04-29</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:29 時点の統計	</div>
</div>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/bulk-media-register/assets/icon-256x256.png?rev=2316228" alt="Bulk Media Register のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/bulk-media-register/" class="pluginstatsview-astyle">Bulk Media Register</a></div>
			<div class="pluginstatsview-small">サーバー上のファイルをメディアライブラリに一括登録します。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/bulk-media-register/#reviews" title="4.5(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-half"></span>
			</span>
	</a>(22)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">8,000以上サイトで有効化中</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/bulk-media-register.1.41.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2020-06-01</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:29 時点の統計	</div>
</div>
</div>
</div>



<h3 class="wp-block-heading">概要</h3>



<ul class="wp-block-list">
<li>フォルダ構造を維持します。</li>



<li>画像ファイルのサムネイルを作成します。</li>



<li>メタデータ（画像、動画、音声）を作成します。</li>



<li>日時を変更します。</li>
</ul>



<h3 class="wp-block-heading">使用方法</h3>



<ol class="wp-block-list">
<li>メディアファイルを何らかの方法で、サーバーの wp-contents/uploads 以下に置きます。フォルダでまとめてもかまわないです。</li>



<li>「登録」画面で、フォルダを指定して「検索」ボタンを押します。</li>



<li>メディアライブラリに登録されていない、登録可能なファイル数と、「登録」ボタンが表示されます。</li>



<li>「登録」ボタンを押すと登録が開始されます。</li>
</ol>



<h3 class="wp-block-heading">スクリーンショット</h3>



<figure class="wp-block-gallery aligncenter has-nested-images columns-1 is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="800" data-id="2384" src="https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-1-1024x800.png" alt="" class="wp-image-2384" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-1-1024x800.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-1-300x234.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-1-768x600.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-1.png 1067w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="816" data-id="2385" src="https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-2-1024x816.png" alt="" class="wp-image-2385" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-2-1024x816.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-2-300x239.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-2-768x612.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-2.png 1046w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="816" data-id="2386" src="https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-3-1024x816.png" alt="" class="wp-image-2386" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-3-1024x816.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-3-300x239.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-3-768x612.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200529/screenshot-3.png 1046w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
</figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Media Library にゴミ箱ボタンを追加するプラグイン</title>
		<link>https://blog.riverforest-wp.info/media-trash-button/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Wed, 13 May 2020 00:57:46 +0000</pubDate>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[ゴミ箱]]></category>
		<category><![CDATA[メディアライブラリ]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=2335</guid>

					<description><![CDATA[はじめに メディアライブラリで、ゴミ箱が利用できるという事を最近知りました。wp-config.php に以下の１行を追加します。既に存在する場合は true にします。 左が従来の画面、右がゴミ箱が追加された画面になり [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">はじめに</h3>



<p>メディアライブラリで、<strong>ゴミ箱</strong>が利用できるという事を最近知りました。<strong>wp-config.php</strong> に以下の１行を追加します。既に存在する場合は <strong>true</strong> にします。</p>



<pre class="prism line-numbers"><code class="language-php language-html">define( 'MEDIA_TRASH', true );</code></pre>



<p>左が従来の画面、右が<strong>ゴミ箱</strong>が追加された画面になります。</p>



<figure class="wp-block-gallery aligncenter columns-2 is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="1024" height="640" src="https://blog.riverforest-wp.info/wp-content/uploads/20200513/normal-media-library-1024x640.png" alt="" data-id="2339" data-full-url="https://blog.riverforest-wp.info/wp-content/uploads/20200513/normal-media-library.png" data-link="https://blog.riverforest-wp.info/normal-media-library/" class="wp-image-2339" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200513/normal-media-library-1024x640.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/normal-media-library-300x187.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/normal-media-library-768x480.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/normal-media-library.png 1268w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="1024" height="634" src="https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-media-library-1024x634.png" alt="" data-id="2343" data-full-url="https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-media-library.png" data-link="https://blog.riverforest-wp.info/trash-media-library/" class="wp-image-2343" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-media-library-1024x634.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-media-library-300x186.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-media-library-768x475.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-media-library.png 1268w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure></li></ul></figure>



<p><strong>ゴミ箱</strong>に移動するには、以下の画面の様にドロップダウンメニューから選択しなければならず面倒です。メディアライブラリの「<strong>新規追加</strong>」ボタンの横に「<strong>ゴミ箱</strong>」ボタンがあれば便利ではないかと思いプラグインを作成しました。</p>



<div class="wp-block-image"><figure data-wp-context="{&quot;imageId&quot;:&quot;69cc635aa4796&quot;}" data-wp-interactive="core/image" data-wp-key="69cc635aa4796" class="aligncenter size-large wp-lightbox-container"><img loading="lazy" decoding="async" width="1024" height="652" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" src="https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-media-drop-1024x652.png" alt="" class="wp-image-2342" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-media-drop-1024x652.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-media-drop-300x191.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-media-drop-768x489.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-media-drop.png 1268w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure></div>



<div class="pluginstatsview-normal-wrap">
	<div>
				<img decoding="async" src="https://ps.w.org/media-trash-button/assets/icon-256x256.png?rev=2303815" alt="Media Trash Button のアイコン" class="pluginstatsview-normal-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/media-trash-button/" class="pluginstatsview-astyle">Media Trash Button</a></div>
			<div><a href="https://wordpress.org/plugins/media-trash-button/#reviews" title="5.0(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span>
			</span>
	</a>(3)</div>
			<div>バージョン1.04</div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div>400以上サイトで有効化中</div>
	<div>メディアライブラリにゴミ箱ボタンを追加します。</div>
	<details open class="pluginstatsview-details">
	<summary class="pluginstatsview-summary">仕様</summary>
			<table class="pluginstatsview-table">
			<tr class="pluginstatsview-tr1">
				<th class="pluginstatsview-th">日付</th>
				<th class="pluginstatsview-th">対応バージョン</th>
				<th class="pluginstatsview-th">リンク</th>
			</tr>
			<tr class="pluginstatsview-tr2">
				<td class="pluginstatsview-td">
					<div><span class="pluginstatsview-bold">作者: </span><a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
					<div><span class="pluginstatsview-bold">最終更新: </span>2日 前</div>
					<div><span class="pluginstatsview-bold">リリース: </span>2020-05-13</div>
				</td>
				<td class="pluginstatsview-td">
					<div><span class="pluginstatsview-bold">PHP: </span>8.0</div>
					<div><span class="pluginstatsview-bold">WordPress: </span>4.7</div>
					<div><span class="pluginstatsview-bold">検証済み: </span>7.0</div>
				</td>
				<td class="pluginstatsview-td">
					<div><span class="pluginstatsview-bold">WordPress : </span><a href="https://wordpress.org/plugins/media-trash-button/" class="dashicons dashicons-wordpress pluginstatsview-download"></a></div>
					<div><span class="pluginstatsview-bold">ダウンロード: </span><a href="https://downloads.wordpress.org/plugin/media-trash-button.1.04.zip" class="dashicons dashicons-download pluginstatsview-download"></a></div>
					<div><span class="pluginstatsview-bold">寄付: </span><a href="https://shop.riverforest-wp.info/donate/" class="dashicons dashicons-external pluginstatsview-download"></a></div>
				</td>
			</tr>
		</table>
		</details>

			<details class="pluginstatsview-details">
		<summary class="pluginstatsview-summary">備考</summary>
		<div class="pluginstatsview-normal-desc"><p>メディアライブラリにゴミ箱ボタンを追加します。</p>
<h4>ボタンを追加</h4>
<ul>
<li>リスト表示のみ。</li>
</ul>
<h4>ボタン</h4>
<ul>
<li>すべてのメディア</li>
<li>ゴミ箱を表示</li>
</ul>
<h4>wp-config.php で、次の１行を追加します。</h4>
<pre><code class="language-php language-html">define( 'MEDIA_TRASH', true );
</code></pre>
</div>
	</details>
	<div>2026-03-31 09:30 時点の統計</div>
</div>



<h3 class="wp-block-heading">動作</h3>



<p>以下の様に、「<strong>新規追加</strong>」ボタンの横に、「<strong>ゴミ箱</strong>」ボタンと「<strong>すべてのメディア</strong>」ボタンを追加します。動作はリスト表示のみとなります。</p>



<figure class="wp-block-gallery aligncenter columns-2 is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="1024" height="665" src="https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash_button-1024x665.png" alt="" data-id="2353" data-full-url="https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash_button.png" data-link="https://blog.riverforest-wp.info/trash_button/" class="wp-image-2353" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash_button-1024x665.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash_button-300x195.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash_button-768x498.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash_button.png 1248w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="1024" height="652" src="https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-1024x652.png" alt="" data-id="2352" data-full-url="https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash.png" data-link="https://blog.riverforest-wp.info/trash/" class="wp-image-2352" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-1024x652.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-300x191.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash-768x489.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200513/trash.png 1268w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure></li></ul></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>メディアライブラリに EXIF 詳細情報を付加するプラグイン</title>
		<link>https://blog.riverforest-wp.info/exif-details/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Tue, 05 May 2020 22:35:56 +0000</pubDate>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Exif]]></category>
		<category><![CDATA[メディアライブラリ]]></category>
		<category><![CDATA[写真]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=2266</guid>

					<description><![CDATA[はじめに メディアライブラリの各メディアのキャプションに EXIF 情報を付加するプラグイン Exif Caption を公開していますが、そのサポートフォーラムで GPS 情報を取得したいとの要望があったのがきっかけで [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">はじめに</h3>



<p>メディアライブラリの各メディアのキャプションに EXIF 情報を付加するプラグイン <strong>Exif Caption</strong> を公開していますが、そのサポートフォーラムで GPS 情報を取得したいとの要望があったのがきっかけで作成しました。</p>



<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/exif-caption/assets/icon-256x256.png?rev=1864839" alt="Exif Caption のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/exif-caption/" class="pluginstatsview-astyle">Exif Caption</a></div>
			<div class="pluginstatsview-small">メディアのキャプションにExifデータを挿入します。また、コンテンツのキャプションを置き換えます。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/exif-caption/#reviews" title="4.7(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-half"></span>
			</span>
	</a>(3)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">600以上サイトで有効化中</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/exif-caption.3.10.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2015-11-02</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:29 時点の統計	</div>
</div>



<p>WordPress のメディアライブラリは、新規追加時にメタデータに EXIF 情報を保存しますが、必要最小限の情報しか保存しません。その内容は以下の通りです。</p>



<style>
.simpleblogcard_img_block056c7cc88f4d4def2c68f3f5ac949777 {
  float: right;
  padding: 10px;
}
.simpleblogcard_border056c7cc88f4d4def2c68f3f5ac949777 {
  border-left: solid 8px #cd162c;
  padding: 0.25em 0.25em;
  background: transparent;
}
.simpleblogcard_title056c7cc88f4d4def2c68f3f5ac949777 {
  line-height: 155%;
  font-weight: bold;
  display: block;
}
.simpleblogcard_description056c7cc88f4d4def2c68f3f5ac949777 {
  line-height: 155%;
  color: #333;
}
</style>
<div class="simpleblogcard_wrap">
			<a style="text-decoration: none;" href=https://codex.wordpress.org/Function_Reference/wp_read_image_metadata#Return_Values>
			<div class="simpleblogcard_inner">
		<div class="simpleblogcard_border056c7cc88f4d4def2c68f3f5ac949777">
			codex.wordpress.org			<div class="simpleblogcard_title056c7cc88f4d4def2c68f3f5ac949777">
				https://codex.wordpress.org/Function_Reference/wp_read_image_metadata#Return_Values			</div>
							<div class="simpleblogcard_description056c7cc88f4d4def2c68f3f5ac949777">
									</div>
					</div>
	</div>
	<div style="clear: both;"></div>
	</a>
</div>



<p>それ以外のほぼ全ての EXIF 情報を取得し、投稿メタデータに保存するプラグイン <strong>Exif Details</strong> を作成しました。</p>



<div class="pluginstatsview-normal-wrap">
	<div>
					<img decoding="async" src="https://ps.w.org/exif-details/assets/banner-1544x500.jpg?rev=2298875" alt="Exif Details のバナー" class="pluginstatsview-banner" />
				<img decoding="async" src="https://ps.w.org/exif-details/assets/icon-256x256.png?rev=2298875" alt="Exif Details のアイコン" class="pluginstatsview-normal-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/exif-details/" class="pluginstatsview-astyle">Exif Details</a></div>
			<div><a href="https://wordpress.org/plugins/exif-details/#reviews" title="5.0(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span>
			</span>
	</a>(1)</div>
			<div>バージョン1.11</div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div>300以上サイトで有効化中</div>
	<div>メディアファイルの詳細な EXIF 情報を取得します。</div>
	<details open class="pluginstatsview-details">
	<summary class="pluginstatsview-summary">仕様</summary>
			<table class="pluginstatsview-table">
			<tr class="pluginstatsview-tr1">
				<th class="pluginstatsview-th">日付</th>
				<th class="pluginstatsview-th">対応バージョン</th>
				<th class="pluginstatsview-th">リンク</th>
			</tr>
			<tr class="pluginstatsview-tr2">
				<td class="pluginstatsview-td">
					<div><span class="pluginstatsview-bold">作者: </span><a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
					<div><span class="pluginstatsview-bold">最終更新: </span>2日 前</div>
					<div><span class="pluginstatsview-bold">リリース: </span>2020-05-05</div>
				</td>
				<td class="pluginstatsview-td">
					<div><span class="pluginstatsview-bold">PHP: </span>8.0</div>
					<div><span class="pluginstatsview-bold">WordPress: </span>4.7</div>
					<div><span class="pluginstatsview-bold">検証済み: </span>7.0</div>
				</td>
				<td class="pluginstatsview-td">
					<div><span class="pluginstatsview-bold">WordPress : </span><a href="https://wordpress.org/plugins/exif-details/" class="dashicons dashicons-wordpress pluginstatsview-download"></a></div>
					<div><span class="pluginstatsview-bold">ダウンロード: </span><a href="https://downloads.wordpress.org/plugin/exif-details.1.11.zip" class="dashicons dashicons-download pluginstatsview-download"></a></div>
					<div><span class="pluginstatsview-bold">寄付: </span><a href="https://shop.riverforest-wp.info/donate/" class="dashicons dashicons-external pluginstatsview-download"></a></div>
				</td>
			</tr>
		</table>
		</details>

			<details class="pluginstatsview-details">
		<summary class="pluginstatsview-summary">備考</summary>
		<div class="pluginstatsview-normal-desc"><p>メディアファイルの詳細な EXIF 情報を取得します。</p>
<h4>取得データ</h4>
<ul>
<li>FILE</li>
<li>EXIF</li>
<li>GPS</li>
</ul>
<h4>兄弟版プラグイン</h4>
<ul>
<li>このプラグインで生成されたタグは、以下のプラグインで使用することができます。</li>
<li><a href="https://ja.wordpress.org/plugins/exif-caption/" rel="nofollow ugc">Exif Caption</a>.</li>
</ul>
<h4>感謝！テストデータの提供</h4>
<ul>
<li><a href="https://profiles.wordpress.org/sysbird/" rel="nofollow ugc">sysbird</a></li>
</ul>
<h4>スニペット 1 &amp; 3 を使用したサンプル</h4>
<span class="embed-youtube" style="text-align:center"></span>
<h4>フィルターフックとアクションフックの使い方サンプル</h4>
<ul>
<li>サンプルスニペット１</li>
</ul>
<pre><code class="language-php language-html">/**  ==================================================
 * Sample snippet 1
 *
 * The original filter hook('exif_details_data'),
 * which changes the display when retrieving an Exif and storing it in metadata.
 * The following changes the display of the shooting date and time.
 *
 * @param array $exifdatas  exifdatas.
 * @param int   $id  id.
 */
function exif_details_change( $exifdatas, $id ) {
    if ( array_key_exists( 'DateTimeOriginal', $exifdatas ) ) {
        $shooting_date = str_replace( ':', '-', substr( $exifdatas['DateTimeOriginal'], 0, 10 ) );
        $shooting_time = substr( $exifdatas['DateTimeOriginal'], 10 );
        $exifdatas['DateTimeOriginal'] = $shooting_date . $shooting_time;
    }
    return $exifdatas;
}
add_filter( 'exif_details_data', 'exif_details_change', 10, 2 );
</code></pre>
<ul>
<li>サンプルスニペット２</li>
</ul>
<pre><code class="language-php language-html">/**  ==================================================
 * Sample snippet 2
 *
 * Retrieve the post metadata and add the date and time of the shooting to the title of the media page.
 * Execute the original action hook('exif_details_update') in the function.
 *
 * @param array $title  title.
 * @param int   $id  id.
 */
function media_title( $title, $id ) {
    $datetime = null;
    if ( is_attachment() ) {
        do_action( 'exif_details_update', $id );
        $exifdatas = get_post_meta( $id, '_exif_details', true );
        if ( ! empty( $exifdatas ) &amp;&amp; array_key_exists( 'DateTimeOriginal', $exifdatas ) ) {
            $datetime = ' Date:' . $exifdatas['DateTimeOriginal'];
        }
    }
    return $title . $datetime;
}
add_filter( 'the_title', 'media_title', 10, 2 );
</code></pre>
<ul>
<li>サンプルスニペット３</li>
</ul>
<pre><code class="language-php language-html">/**  ==================================================
 * Sample snippet 3
 *
 * When adding new media, insert the processed data into the caption.
 * Use the original action hook ('exif_details_update') with function.
 *
 * @param array $metadata  metadata.
 * @param int   $id  id.
 */
function media_caption( $metadata, $id ) {
    $mime_type = get_post_mime_type( $id );
    if ( in_array( $mime_type, array( 'image/jpeg', 'image/tiff' ) ) ) {
        do_action( 'exif_details_update', $id );
        $exifdatas = get_post_meta( $id, '_exif_details', true );
        if ( ! empty( $exifdatas ) ) {
            $camera = null;
            $f_number = null;
            $s_speed = null;
            $iso = null;
            $date = null;
            $googlemap = null;
            if ( array_key_exists( 'Model', $exifdatas ) ) {
                $camera = 'Camera:' . $exifdatas['Model'];
            }
            if ( array_key_exists( 'ApertureFNumber', $exifdatas ) ) {
                $f_number = 'F-number:' . $exifdatas['ApertureFNumber'];
            }
            if ( array_key_exists( 'ExposureTime', $exifdatas ) ) {
                $s_speed = 'Shutter speed:' . $exifdatas['ExposureTime'];
            }
            if ( array_key_exists( 'ISOSpeedRatings', $exifdatas ) ) {
                $isodata = json_decode( $exifdatas['ISOSpeedRatings'] );
                if ( is_array( $isodata ) ) {
                    $iso = 'ISO:' . $isodata[0];
                } else {
                    $iso = 'ISO:' . $isodata;
                }
            }
            if ( array_key_exists( 'DateTimeOriginal', $exifdatas ) ) {
                $date = 'Date:' . $exifdatas['DateTimeOriginal'];
            }
            if ( array_key_exists( 'latitude_dd', $exifdatas ) &amp;&amp; array_key_exists( 'longtitude_dd', $exifdatas ) ) {
                $googlemap = '&lt;a href="https://www.google.com/maps?q=' . $exifdatas['latitude_dd'] . ',' . $exifdatas['longtitude_dd'] . '"&gt;Google Map&lt;/a&gt;';
            }
            $caption = sprintf( '%1$s %2$s %3$s %4$s %5$s %6$s', $camera, $f_number, $s_speed, $iso, $date, $googlemap );
            $caption = rtrim( $caption );
            $caption = preg_replace( '/\s(?=\s)/', '', $caption );
            $media_post = array(
                'ID'           =&gt; $id,
                'post_excerpt' =&gt; $caption,
            );
            wp_update_post( $media_post );
        }
    }
    return $metadata;
}
add_filter( 'wp_generate_attachment_metadata', 'media_caption', 10, 2 );
</code></pre>
</div>
	</details>
	<div>2026-03-31 09:29 時点の統計</div>
</div>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>開発にあたり、<strong>sysbird</strong> 様から写真のテストデータを提供していただきました。ありがとうございました。</p><cite><a href="https://profiles.wordpress.org/sysbird/"><strong>sysbird</strong></a></cite></blockquote>



<h3 class="wp-block-heading">使用方法</h3>



<p>インストールすると、メディアライブラリのカラムに EXIF が追加されます。その欄に、EXIF タグと値が表示されます。そのデータは、投稿メタデータのメタキー <strong>_exif_details</strong> に保存されます。また、そのデータ保存をフィルターするフィルターフック <strong>exif_details_data</strong> を提供します。</p>



<div class="wp-block-image"><figure data-wp-context="{&quot;imageId&quot;:&quot;69cc635da8758&quot;}" data-wp-interactive="core/image" data-wp-key="69cc635da8758" class="aligncenter size-large wp-lightbox-container"><img loading="lazy" decoding="async" width="1024" height="642" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" src="https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-column-1024x642.png" alt="" class="wp-image-2279" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-column-1024x642.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-column-300x188.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-column-768x481.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-column.png 1272w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure></div>



<h4 class="wp-block-heading">プラグイン Exif Caption を利用した使用方法</h4>



<p>プラグイン <strong>Exif Caption</strong> の設定で <strong>Exif Details</strong> で表示される Exif タグを使用できます。タグは <strong>%</strong> で囲んで使用します。<strong>Exif タグ</strong>を設定すると、メディアのキャプションに出力されます。<strong>Exif Caption</strong> は最新バージョンを使用してください。</p>



<figure class="wp-block-gallery aligncenter columns-1 is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="1024" height="642" src="https://blog.riverforest-wp.info/wp-content/uploads/20200506/exifcaption-settings-1024x642.png" alt="" data-id="2277" data-full-url="https://blog.riverforest-wp.info/wp-content/uploads/20200506/exifcaption-settings.png" data-link="https://blog.riverforest-wp.info/exifcaption-settings/" class="wp-image-2277" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200506/exifcaption-settings-1024x642.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200506/exifcaption-settings-300x188.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200506/exifcaption-settings-768x481.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200506/exifcaption-settings.png 1272w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="1024" height="639" src="https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-caption-1024x639.png" alt="" data-id="2278" data-full-url="https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-caption.png" data-link="https://blog.riverforest-wp.info/media-caption/" class="wp-image-2278" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-caption-1024x639.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-caption-300x187.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-caption-768x479.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-caption.png 1277w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure></li></ul></figure>



<h4 class="wp-block-heading">単純なメタデータの取得・使用方法</h4>



<pre class="prism line-numbers"><code class="language-php language-html">/* 取得：投稿 ID を指定し、メタデータを取得 */
$exifdatas = get_post_meta( 投稿ID, '_exif_details', true );
/* 使用：配列で提供されるメタデータのキーに EXIF タグ を指定しデータを表示 */
&lt;?php echo esc_html( $exifdatas&#91;'DateTimeOriginal'] ); ?></code></pre>



<h4 class="wp-block-heading">フィルターフックとアクションフックを利用した使用方法</h4>



<pre class="prism line-numbers"><code class="language-php language-html">/* EXIF を取得してメタデータに保存する際の表示を変更するオリジナルフィルターフック('exif_details_data')。以下、撮影日時の表示を EXIF オリジナルの 2020:05:06 07:00:00 から、2020-05-06 07:00:00 のように変更します。 */
add_filter( 'exif_details_data', 'exif_details_change', 10, 2 );
function exif_details_change( $exifdatas, $id ) {
	if ( array_key_exists( 'DateTimeOriginal', $exifdatas ) ) {
		$shooting_date = str_replace( ':', '-', substr( $exifdatas&#91;'DateTimeOriginal'], 0, 10 ) );
		$shooting_time = substr( $exifdatas&#91;'DateTimeOriginal'], 10 );
		$exifdatas&#91;'DateTimeOriginal'] = $shooting_date . $shooting_time;
	}
	return $exifdatas;
}

/* 投稿メタデータを取得し、メディアページのタイトルに撮影日時を追加します。関数内でオリジナルアクションフック('exif_details_update')を使用します。 */
add_filter( 'the_title', 'media_title', 10, 2 );
function media_title( $title, $id ) { 
	$datetime = null;
	if ( is_attachment() ) {
		do_action( 'exif_details_update', $id );
		$exifdatas = get_post_meta( $id, '_exif_details', true );
		$datetime = ' 撮影日時 : ' . $exifdatas&#91;'DateTimeOriginal'];
	}
    return $title . $datetime; 
}</code></pre>



<div class="wp-block-image"><figure data-wp-context="{&quot;imageId&quot;:&quot;69cc635da9dcc&quot;}" data-wp-interactive="core/image" data-wp-key="69cc635da9dcc" class="aligncenter size-large wp-lightbox-container"><img loading="lazy" decoding="async" width="1024" height="511" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" src="https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-filter-1024x511.png" alt="" class="wp-image-2280" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-filter-1024x511.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-filter-300x150.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-filter-768x383.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20200506/media-filter.png 1252w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure></div>



<h3 class="wp-block-heading">仕様</h3>



<ul class="wp-block-list"><li>EXIF タグの内、大文字で始まるものは、未加工のものです。全て小文字のものは、このプラグインが加工したものです。<ul><li><strong>latitude</strong> 緯度</li><li><strong>longtitude</strong> 経度</li><li><strong>gpsaltitude</strong> 標高</li><li><strong>/</strong> が入った数字のみのものは、割り算しています。</li></ul></li><li>元データが配列のものは、JSON に変換されます。</li></ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>サムネイル生成時の比率を強制的に変更するプラグイン</title>
		<link>https://blog.riverforest-wp.info/ratio-thumbnails-size/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Mon, 25 Nov 2019 23:07:27 +0000</pubDate>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[サムネイル]]></category>
		<category><![CDATA[メディア]]></category>
		<category><![CDATA[メディアライブラリ]]></category>
		<category><![CDATA[画像]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=1820</guid>

					<description><![CDATA[はじめに 以下のツイートにヒントを得て、作成しました。 機能 プラグインを有効化すると、設定された比率でサムネイルを生成します。「設定」－＞「メディア」の長いサイズを元に以下の比率で生成します。 以下の比率に対応していま [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">はじめに</h3>



<p>以下のツイートにヒントを得て、作成しました。</p>



<figure class="wp-block-embed is-type-rich is-provider-twitter wp-block-embed-twitter"><div class="wp-block-embed__wrapper">
<blockquote class="twitter-tweet" data-width="500" data-dnt="true"><p lang="ja" dir="ltr">Nishiki は16:9を推奨サイズにしてるんで、テーマを変えたらサムネイルの再作成をお願いしてるんだけど、やってもらえないこともまあまああるんよね…なんとかしたい<a href="https://t.co/gsWP4uPA5g">https://t.co/gsWP4uPA5g</a></p>&mdash; Imamura (@s56bouya) <a href="https://twitter.com/s56bouya/status/1198872577206177792?ref_src=twsrc%5Etfw">November 25, 2019</a></blockquote><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div></figure>



<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/ratio-thumbnails-size/assets/icon-256x256.png?rev=2200952" alt="Ratio Thumbnails Size のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/ratio-thumbnails-size/" class="pluginstatsview-astyle">Ratio Thumbnails Size</a></div>
			<div class="pluginstatsview-small">サムネイル生成の比率を指定します。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/ratio-thumbnails-size/#reviews" title="0.0(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span><span class="dashicons dashicons-star-empty"></span>
			</span>
	</a>(0)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">30以上サイトで有効化中</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/ratio-thumbnails-size.1.08.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2019-11-25</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:29 時点の統計	</div>
</div>



<h3 class="wp-block-heading">機能</h3>



<p>プラグインを有効化すると、設定された比率でサムネイルを生成します。「設定」－＞「メディア」の長いサイズを元に以下の比率で生成します。</p>



<p>以下の比率に対応しています。</p>



<ul class="wp-block-list">
<li>1.414 : 1 白銀比</li>



<li>1.618 : 1 黄金比</li>



<li>1.91 : 1 Facebook および Twitter の OGP 画像比率</li>



<li>3 : 2 フィルムカメラなどの比率</li>



<li>4 : 3 デジタルカメラなどの比率（WordPress デフォルト）</li>



<li>16 :9 ハイビジョン</li>



<li>元の画像と同じ比率</li>
</ul>



<p>また設定した上記の比率で作成せずに、元の設定で作成したい場合のサムネイルを指定できます。</p>



<figure data-wp-context="{&quot;imageId&quot;:&quot;69cc635dad2c6&quot;}" data-wp-interactive="core/image" data-wp-key="69cc635dad2c6" class="wp-block-image aligncenter size-large wp-lightbox-container"><img loading="lazy" decoding="async" width="1024" height="816" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" src="https://blog.riverforest-wp.info/wp-content/uploads/20191125/screenshot-1-1024x816.png" alt="" class="wp-image-1916" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20191125/screenshot-1-1024x816.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20191125/screenshot-1-300x239.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20191125/screenshot-1-768x612.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20191125/screenshot-1.png 1095w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>WordPress 5.3 からのメディアライブラリにおける大画像の問題について</title>
		<link>https://blog.riverforest-wp.info/media-large-image-wp5-3/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Tue, 19 Nov 2019 22:49:00 +0000</pubDate>
				<category><![CDATA[Function]]></category>
		<category><![CDATA[オリジナルファイル]]></category>
		<category><![CDATA[スケーリング]]></category>
		<category><![CDATA[フィルター]]></category>
		<category><![CDATA[メディアライブラリ]]></category>
		<category><![CDATA[大画像]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=1806</guid>

					<description><![CDATA[はじめに WordPress 5.3 から、メディアアップロード時に大画像を検知して、スケーリングする機能が追加されました。デフォルトでは 2560px 以上の画像で動作します。この事が、大画像を扱う方達の間で問題を引き [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">はじめに</h3>



<p>WordPress 5.3 から、メディアアップロード時に大画像を検知して、スケーリングする機能が追加されました。デフォルトでは 2560px 以上の画像で動作します。この事が、大画像を扱う方達の間で問題を引き起こしています。</p>



<h3 class="wp-block-heading">オリジナル画像は？</h3>



<p>大画像をアップロードすると以下のように、元ファイルに「<strong>-scaled</strong>」と付加されたファイルがメディアライブラリの画像になります。スケーリングされた画像であり元の画像ではありません。</p>



<figure data-wp-context="{&quot;imageId&quot;:&quot;69cc635daedbb&quot;}" data-wp-interactive="core/image" data-wp-key="69cc635daedbb" class="wp-block-image aligncenter size-large wp-lightbox-container"><img loading="lazy" decoding="async" width="1024" height="681" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" src="https://blog.riverforest-wp.info/wp-content/uploads/20191120/media-1024x681.png" alt="" class="wp-image-1811" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20191120/media-1024x681.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20191120/media-300x199.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20191120/media-768x510.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20191120/media.png 1267w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>



<p>サーバーを見てみると、元の画像は存在しますが、管理画面からは見れません。</p>



<figure data-wp-context="{&quot;imageId&quot;:&quot;69cc635daf743&quot;}" data-wp-interactive="core/image" data-wp-key="69cc635daf743" class="wp-block-image aligncenter size-large wp-lightbox-container"><img loading="lazy" decoding="async" width="1024" height="621" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" src="https://blog.riverforest-wp.info/wp-content/uploads/20191120/files-1024x621.png" alt="" class="wp-image-1810" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20191120/files-1024x621.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20191120/files-300x182.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20191120/files-768x466.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20191120/files.png 1088w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>



<p>どのように管理されているかデータベースを調べてみると、メタデータの中に <strong>original_image</strong> というメタデータがありそこにファイル名が記されていました。</p>



<figure data-wp-context="{&quot;imageId&quot;:&quot;69cc635db0175&quot;}" data-wp-interactive="core/image" data-wp-key="69cc635db0175" class="wp-block-image size-large wp-lightbox-container"><img loading="lazy" decoding="async" width="1024" height="626" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" src="https://blog.riverforest-wp.info/wp-content/uploads/20191120/meta-1024x626.png" alt="" class="wp-image-1813" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20191120/meta-1024x626.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20191120/meta-300x183.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20191120/meta-768x469.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20191120/meta.png 1198w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>



<h3 class="wp-block-heading">この動作を抑制するには？</h3>



<p>以下のフィルターを使用して抑制するとスケーリングしなくなります。</p>



<pre class="prism line-numbers"><code class="language-php language-html">add_filter( 'big_image_size_threshold', '__return_zero', 10, 2 );</code></pre>



<p>また私の作成したプラグイン <strong>Disable Generate Thumbnails</strong> では、設定メニューから ON・OFF できます。</p>



<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/disable-generate-thumbnails/assets/icon-256x256.png?rev=2187340" alt="Disable Generate Thumbnails のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/disable-generate-thumbnails/" class="pluginstatsview-astyle">Disable Generate Thumbnails</a></div>
			<div class="pluginstatsview-small">サムネイルと機能を選択して無効にします。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/disable-generate-thumbnails/#reviews" title="5.0(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span>
			</span>
	</a>(15)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">6,000以上サイトで有効化中</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/disable-generate-thumbnails.2.21.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2019-11-06</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:30 時点の統計	</div>
</div>



<h3 class="wp-block-heading">オリジナル画像の URL は？</h3>



<p>メディアライブラリのファイル名から「<strong>-scaled</strong>」をとったものです。</p>



<p>URL は、以下の関数で取得できます。</p>



<style>
.simpleblogcard_img_block75ded23a72dfc121bd2beab0b1213db8 {
  float: right;
  padding: 10px;
}
.simpleblogcard_border75ded23a72dfc121bd2beab0b1213db8 {
  border-left: solid 8px #cd162c;
  padding: 0.25em 0.25em;
  background: transparent;
}
.simpleblogcard_title75ded23a72dfc121bd2beab0b1213db8 {
  line-height: 155%;
  font-weight: bold;
  display: block;
}
.simpleblogcard_description75ded23a72dfc121bd2beab0b1213db8 {
  line-height: 155%;
  color: #333;
}
</style>
<div class="simpleblogcard_wrap">
			<a style="text-decoration: none;" href=https://developer.wordpress.org/reference/functions/wp_get_original_image_url/>
				<figure class="simpleblogcard_img_block75ded23a72dfc121bd2beab0b1213db8">
			<img decoding="async" style="border-radius: 5px; width: 100px; height: 52px;" src="https://developer.wordpress.org/wp-content/themes/wporg-developer-2023/images/opengraph-image.png" alt="wp_get_original_image_url() – Function | Developer.WordPress.org" />
		</figure>
		<div class="simpleblogcard_inner">
		<div class="simpleblogcard_border75ded23a72dfc121bd2beab0b1213db8">
			developer.wordpress.org			<div class="simpleblogcard_title75ded23a72dfc121bd2beab0b1213db8">
				wp_get_original_image_url() – Function | Developer.WordPress.org			</div>
							<div class="simpleblogcard_description75ded23a72dfc121bd2beab0b1213db8">
					Retrieves the URL to an original attachment image.				</div>
					</div>
	</div>
	<div style="clear: both;"></div>
	</a>
</div>



<p>フルパスは、以下の関数で取得できます。</p>



<style>
.simpleblogcard_img_blockdba999e860c69a70fd9dcb59fc87158e {
  float: right;
  padding: 10px;
}
.simpleblogcard_borderdba999e860c69a70fd9dcb59fc87158e {
  border-left: solid 8px #cd162c;
  padding: 0.25em 0.25em;
  background: transparent;
}
.simpleblogcard_titledba999e860c69a70fd9dcb59fc87158e {
  line-height: 155%;
  font-weight: bold;
  display: block;
}
.simpleblogcard_descriptiondba999e860c69a70fd9dcb59fc87158e {
  line-height: 155%;
  color: #333;
}
</style>
<div class="simpleblogcard_wrap">
			<a style="text-decoration: none;" href=https://developer.wordpress.org/reference/functions/wp_get_original_image_path/>
				<figure class="simpleblogcard_img_blockdba999e860c69a70fd9dcb59fc87158e">
			<img decoding="async" style="border-radius: 5px; width: 100px; height: 52px;" src="https://developer.wordpress.org/wp-content/themes/wporg-developer-2023/images/opengraph-image.png" alt="wp_get_original_image_path() – Function | Developer.WordPress.org" />
		</figure>
		<div class="simpleblogcard_inner">
		<div class="simpleblogcard_borderdba999e860c69a70fd9dcb59fc87158e">
			developer.wordpress.org			<div class="simpleblogcard_titledba999e860c69a70fd9dcb59fc87158e">
				wp_get_original_image_path() – Function | Developer.WordPress.org			</div>
							<div class="simpleblogcard_descriptiondba999e860c69a70fd9dcb59fc87158e">
					Retrieves the path to an uploaded image file.				</div>
					</div>
	</div>
	<div style="clear: both;"></div>
	</a>
</div>



<p>また私の作成したプラグイン <strong>Media Metadata List</strong> からオリジナル画像の URL とサイズを知る事ができます。 </p>



<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/media-metadata-list/assets/icon-256x256.png?rev=2129332" alt="Media Metadata List のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/media-metadata-list/" class="pluginstatsview-astyle">Media Metadata List</a></div>
			<div class="pluginstatsview-small">メディアライブラリのリストビューにメタデータのリストを表示します。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/media-metadata-list/#reviews" title="4.5(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-half"></span>
			</span>
	</a>(2)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">100以上サイトで有効化中</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/media-metadata-list.2.03.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2019-07-26</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:30 時点の統計	</div>
</div>



<figure data-wp-context="{&quot;imageId&quot;:&quot;69cc635db1702&quot;}" data-wp-interactive="core/image" data-wp-key="69cc635db1702" class="wp-block-image size-large wp-lightbox-container"><img loading="lazy" decoding="async" width="1024" height="681" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on-window--resize="callbacks.setButtonStyles" src="https://blog.riverforest-wp.info/wp-content/uploads/20191120/media-metadata-list-1024x681.png" alt="" class="wp-image-1812" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20191120/media-metadata-list-1024x681.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20191120/media-metadata-list-300x199.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20191120/media-metadata-list-768x510.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20191120/media-metadata-list.png 1267w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			aria-label="拡大する"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.imageButtonRight"
			data-wp-style--top="state.imageButtonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button></figure>



<h3 class="wp-block-heading">その他</h3>



<p>私の作成したプラグイン <strong>Media from FTP</strong> でスケーリングされた画像を再検索してしまう問題を、Version 11.03 で修正しました。</p>


]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>メディアライブラリにメタデータを表示するプラグイン</title>
		<link>https://blog.riverforest-wp.info/media-metadata-list/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Fri, 26 Jul 2019 23:28:28 +0000</pubDate>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Exif]]></category>
		<category><![CDATA[サムネイル]]></category>
		<category><![CDATA[メタデータ]]></category>
		<category><![CDATA[メディアライブラリ]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=1584</guid>

					<description><![CDATA[はじめに いろいろと作業しているときに、メディアのサムネイルの URL が知りたくなり作成しました。ついでに、ファイルサイズやファイルタイプ、動画や音楽の長さ、画像の Exif 情報も表示します。サムネイルと Exif  [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">はじめに</h3>



<p>いろいろと作業しているときに、メディアのサムネイルの URL が知りたくなり作成しました。ついでに、ファイルサイズやファイルタイプ、動画や音楽の長さ、画像の Exif 情報も表示します。サムネイルと Exif 情報は、折りたたみ表示に対応しています。</p>



<div class="pluginstatsview-card-wrap">
	<div>
		<img decoding="async" src="https://ps.w.org/media-metadata-list/assets/icon-256x256.png?rev=2129332" alt="Media Metadata List のアイコン" class="pluginstatsview-card-icon" />
		<div class="pluginstatsview-after-icon">
			<div class="pluginstatsview-bold"><a href="https://wordpress.org/plugins/media-metadata-list/" class="pluginstatsview-astyle">Media Metadata List</a></div>
			<div class="pluginstatsview-small">メディアライブラリのリストビューにメタデータのリストを表示します。</div>
			<div class="pluginstatsview-small">作者: <a href="https://profiles.wordpress.org/katsushi-kawamori/">Katsushi Kawamori</a></div>
			<div style="clear: both;"></div>
		</div>
	</div>
	<div style="clear: both;"></div>

	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left"><a href="https://wordpress.org/plugins/media-metadata-list/#reviews" title="4.5(5点満点中)" class="pluginstatsview-astyle">	<span class="pluginstatsview-stars">
					<span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-half"></span>
			</span>
	</a>(2)</span>
		<span class="pluginstatsview-card-right">最終更新: 2日 前</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">100以上サイトで有効化中</span>
		<span class="pluginstatsview-card-right">検証済み: 7.0</span>
	</div>
	<div class="pluginstatsview-small">
		<span class="pluginstatsview-card-left">ダウンロード: <a href="https://downloads.wordpress.org/plugin/media-metadata-list.2.03.zip" class="dashicons dashicons-download pluginstatsview-download"></a></span>
		<span class="pluginstatsview-card-right">リリース: 2019-07-26</span>
	</div>
	<div class="pluginstatsview-small pluginstatsview-card-center">
		2026-03-31 09:30 時点の統計	</div>
</div>



<h3 class="wp-block-heading">仕様</h3>



<p>以下のスクリーンショットの様に、メディアライブラリがリスト表示の際に、メタデータを表示します。</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="1024" height="657" src="https://blog.riverforest-wp.info/wp-content/uploads/20190727/screenshot-1-1024x657.png" alt="" class="wp-image-1583" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20190727/screenshot-1-1024x657.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20190727/screenshot-1-300x193.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20190727/screenshot-1-768x493.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20190727/screenshot-1.png 1178w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>RaspbianにImagickをインストールする</title>
		<link>https://blog.riverforest-wp.info/raspbian-imagick/</link>
		
		<dc:creator><![CDATA[Katsushi Kawamori]]></dc:creator>
		<pubDate>Wed, 23 May 2018 01:08:09 +0000</pubDate>
				<category><![CDATA[raspbian]]></category>
		<category><![CDATA[imagick]]></category>
		<category><![CDATA[PECL]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[メディアライブラリ]]></category>
		<guid isPermaLink="false">https://blog.riverforest-wp.info/?p=169</guid>

					<description><![CDATA[はじめに WordPress のプラグイン開発環境で Raspberry Pi 3 Model B を使用しています。昨日、Raspbian を Jessie から Strech に変更（クリーンインストール）しました。 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">はじめに</h2>



<p>WordPress のプラグイン開発環境で Raspberry Pi 3 Model B を使用しています。昨日、Raspbian を Jessie から Strech に変更（クリーンインストール）しました。その際、Jessie の時に Imagick のインストールで苦労したのを思い出したので記述しておきます。今回は以下の方法で楽にインストールできました。</p>



<h2 class="wp-block-heading">なぜImagickをインストール？</h2>



<p>2ヶ月半前、私のプラグインのサポートフォーラムに以下の投稿がありました。</p>



<style>
.simpleblogcard_img_block534825acaa2b2c81f7f74735aada0288 {
  float: right;
  padding: 10px;
}
.simpleblogcard_border534825acaa2b2c81f7f74735aada0288 {
  border-left: solid 8px #cd162c;
  padding: 0.25em 0.25em;
  background: transparent;
}
.simpleblogcard_title534825acaa2b2c81f7f74735aada0288 {
  line-height: 155%;
  font-weight: bold;
  display: block;
}
.simpleblogcard_description534825acaa2b2c81f7f74735aada0288 {
  line-height: 155%;
  color: #333;
}
</style>
<div class="simpleblogcard_wrap">
			<a style="text-decoration: none;" href=https://wordpress.org/support/topic/pdf-thumbnail-not-moved/>
				<figure class="simpleblogcard_img_block534825acaa2b2c81f7f74735aada0288">
			<img decoding="async" style="border-radius: 5px; width: 100px; height: 56px;" src="https://s.w.org/images/home/wordpress-default-ogimage.png" alt="PDF thumbnail not moved | WordPress.org" />
		</figure>
		<div class="simpleblogcard_inner">
		<div class="simpleblogcard_border534825acaa2b2c81f7f74735aada0288">
			wordpress.org			<div class="simpleblogcard_title534825acaa2b2c81f7f74735aada0288">
				PDF thumbnail not moved | WordPress.org			</div>
							<div class="simpleblogcard_description534825acaa2b2c81f7f74735aada0288">
					PDF thumbnail not moved Resolved eldb (@przemyslaw-napierala) 8 years ago WP create “.jpg”&#8230;				</div>
					</div>
	</div>
	<div style="clear: both;"></div>
	</a>
</div>



<p>メディアライブラリの新規追加時に、PDF ファイルがサムネイルを作成するのを、WordPress 4.7 からサポートしたのですが、それには Imagick が必要になります。現在、借りているレンタルサーバー VALUR SERVER では、Imagick をサポートせず、自分の開発環境 Raspbian にも入れていなかったので、テスト時に気づきませんでした。そのため、インストールする事にしました。</p>



<h2 class="wp-block-heading">インストール</h2>



<p>ImageMagick のインストール
</p>



<p><code class="language-php language-html">sudo apt-get install libmagickwand-dev<br>
sudo apt-get -y install imagemagick</code></p>



<p>PEAR のインストール</p>



<p>php のディレクトリーにおいて<br>
<code class="language-php language-html">cd /usr/bin</code><br>
<code class="language-php language-html">sudo wget http://pear.php.net/go-pear.phar</code><br>
<code class="language-php language-html">sudo php go-pear.phar</code></p>



<p>php.ini に以下を追加<br>
<code class="language-php language-html">include_path=".:/usr/PEAR"</code></p>



<p>pecl スクリプトの編集
</p>



<p><code class="language-php language-html">sudo nano `which pecl`</code></p>



<p>最下行を編集（ <code class="language-php language-html">-n</code> を 削除するだけです）</p>



<p>修正前　<code class="language-php language-html">exec $PHP -C -n -q $INCARG -d date.timezone=UTC -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv="On" $INCDIR/peclcmd.php "$@"</code></p>



<p>修正後　<code class="language-php language-html">exec $PHP -C -q $INCARG -d date.timezone=UTC -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv="On" $INCDIR/peclcmd.php "$@"</code></p>



<p>Imagickのインストール
</p>



<p><code class="language-php language-html">sudo pecl install imagick</code></p>



<p>php.ini に以下を追加<br>
<code class="language-php language-html">extension=imagick.so</code></p>



<h2 class="wp-block-heading">インストールの確認</h2>



<p>phpinfo の画面です。</p>



<figure class="wp-block-image aligncenter"><img loading="lazy" decoding="async" width="1024" height="566" src="https://blog.riverforest-wp.info/wp-content/uploads/20180523/phpinfo-1024x566.png" alt="" class="wp-image-172"/></figure>



<h2 class="wp-block-heading">Imagick有無の違い</h2>



<ul class="wp-block-list">
<li><strong>Imagick 無し</strong></li>
</ul>



<figure class="wp-block-image aligncenter"><img loading="lazy" decoding="async" width="1024" height="482" src="https://blog.riverforest-wp.info/wp-content/uploads/20180523/uploadnonsupport-1024x482.png" alt="" class="wp-image-175" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20180523/uploadnonsupport-1024x482.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20180523/uploadnonsupport-300x141.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20180523/uploadnonsupport-768x362.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20180523/uploadnonsupport.png 1098w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image aligncenter"><img loading="lazy" decoding="async" width="412" height="272" src="https://blog.riverforest-wp.info/wp-content/uploads/20180523/medianonsupport.png" alt="" class="wp-image-177" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20180523/medianonsupport.png 412w, https://blog.riverforest-wp.info/wp-content/uploads/20180523/medianonsupport-300x198.png 300w" sizes="auto, (max-width: 412px) 100vw, 412px" /></figure>



<ul class="wp-block-list">
<li><strong>Imagick 有</strong></li>
</ul>



<figure class="wp-block-image aligncenter"><img loading="lazy" decoding="async" width="1024" height="502" src="https://blog.riverforest-wp.info/wp-content/uploads/20180523/uploadsupport-1024x502.png" alt="" class="wp-image-176" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20180523/uploadsupport-1024x502.png 1024w, https://blog.riverforest-wp.info/wp-content/uploads/20180523/uploadsupport-300x147.png 300w, https://blog.riverforest-wp.info/wp-content/uploads/20180523/uploadsupport-768x377.png 768w, https://blog.riverforest-wp.info/wp-content/uploads/20180523/uploadsupport.png 1105w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image aligncenter"><img loading="lazy" decoding="async" width="407" height="306" src="https://blog.riverforest-wp.info/wp-content/uploads/20180523/mediasupport.png" alt="" class="wp-image-174" srcset="https://blog.riverforest-wp.info/wp-content/uploads/20180523/mediasupport.png 407w, https://blog.riverforest-wp.info/wp-content/uploads/20180523/mediasupport-300x226.png 300w" sizes="auto, (max-width: 407px) 100vw, 407px" /></figure>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
