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

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://tw.wordpress.org/plugins/imagebase642file/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/imagebase642file/#reviews)
 * [開發資訊](https://tw.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

## 常見問題集

### 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/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/imagebase642file/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/imagebase642file/)。

## 變更記錄

v1.0.1
 – Support for product post type

## 中繼資料

 *  版本 **1.0.1**
 *  最後更新 **4 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 5.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.0.12**
 *  PHP 版本需求 ** 7.1 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/imagebase642file/)
 * 標籤:
 * [convert image](https://tw.wordpress.org/plugins/tags/convert-image/)[image](https://tw.wordpress.org/plugins/tags/image/)
 *  [進階檢視](https://tw.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/)