Title: ImageBase642File
Author: James Etu
Published: <strong>2021年6月8日</strong>
Last modified: 2022年8月3日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://s.w.org/plugins/geopattern-icon/imagebase642file.svg)

# ImageBase642File

 作者: [James Etu](https://profiles.wordpress.org/donjajo/)

[ダウンロード](https://downloads.wordpress.org/plugin/imagebase642file.zip)

 * [詳細](https://ja.wordpress.org/plugins/imagebase642file/#description)
 * [レビュー](https://ja.wordpress.org/plugins/imagebase642file/#reviews)
 * [開発](https://ja.wordpress.org/plugins/imagebase642file/#developers)

 [サポート](https://wordpress.org/support/plugin/imagebase642file/)

## 説明

This plugin converts base64 encoded inline images to an absolute URL by; uploading
inline image into WordPress directory. This happens when a post is saved.

It converts this:
 `<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//
8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />`

To this:
 `<img src="https://site.com/wp-content/uploads/2021/05/post_title_id_no.
png" alt="Red dot" />`

I was working on an external editor to allow users to post on WordPress, this editor
embeds images in base64 encoded format. This makes post contents too long to load
on-page and also cannot be stored on buffer unless PHP is set to very high memory
usage.

This plugin converts the encoded base64 inline images to a link by scrapping out
the base64, decode, store to file and replace with the URL. The post content becomes
very short. This is over-engineered to prevent PHP memory limit when trying to copy
base64 encode to file. This plugin will perform each chunk copy on 76 characters,
76 bytes. This is the base64 line limit. There will never be an out of memory when
copying these images.
 And, it is faster than using regex

## FAQ

### Does this plugin support other post types?

Currently, no. Only page and post are supported

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

ImageBase642File はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献
しています。

貢献者

 *   [ James Etu ](https://profiles.wordpress.org/donjajo/)

[“ImageBase642File” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/imagebase642file)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/imagebase642file/)する
か、[SVN リポジトリ](https://plugins.svn.wordpress.org/imagebase642file/)をチェック
するか、[開発ログ](https://plugins.trac.wordpress.org/log/imagebase642file/)を [RSS](https://plugins.trac.wordpress.org/log/imagebase642file/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

v1.0.1
 – Support for product post type

## メタ

 *  バージョン **1.0.1**
 *  最終更新日 **4年前**
 *  有効インストール数 **10+**
 *  WordPress バージョン ** 5.1またはそれ以降 **
 *  検証済み最新バージョン: **6.0.12**
 *  PHP バージョン ** 7.1またはそれ以降 **
 *  言語
 * [English (US)](https://wordpress.org/plugins/imagebase642file/)
 * タグ
 * [convert image](https://ja.wordpress.org/plugins/tags/convert-image/)[image](https://ja.wordpress.org/plugins/tags/image/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/imagebase642file/advanced/)

## 評価

レビューはまだ送信されていません。

[Your review](https://wordpress.org/support/plugin/imagebase642file/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/imagebase642file/reviews/)

## 貢献者

 *   [ James Etu ](https://profiles.wordpress.org/donjajo/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/imagebase642file/)