Title: ImageBase642File
Author: James Etu
Published: <strong>8 Tháng 6, 2021</strong>
Last modified: 3 Tháng 8, 2022

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

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

# ImageBase642File

 Bởi [James Etu](https://profiles.wordpress.org/donjajo/)

[Tải về](https://downloads.wordpress.org/plugin/imagebase642file.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/imagebase642file/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/imagebase642file/#reviews)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/imagebase642file/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/imagebase642file/)

## Mô tả

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

## Hỏi đáp

### Does this plugin support other post types?

Currently, no. Only page and post are supported

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“ImageBase642File” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

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

[Dịch “ImageBase642File” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/imagebase642file)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/imagebase642file/), check
out [SVN repository](https://plugins.svn.wordpress.org/imagebase642file/), hoặc 
theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/imagebase642file/)
qua [RSS](https://plugins.trac.wordpress.org/log/imagebase642file/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

v1.0.1
 – Support for product post type

## Meta

 *  Phiên bản **1.0.1**
 *  Cập nhật lần cuối **4 năm trước**
 *  Số lượt cài đặt **10+**
 *  Phiên bản WordPress ** 5.1 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.0.12**
 *  Phiên bản PHP ** 7.1 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/imagebase642file/)
 * Thẻ
 * [convert image](https://vi.wordpress.org/plugins/tags/convert-image/)[image](https://vi.wordpress.org/plugins/tags/image/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/imagebase642file/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/imagebase642file/reviews/)

## Những người đóng góp

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

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/imagebase642file/)