Title: ImageBase642File
Author: James Etu
Published: <strong>08.06.2021</strong>
Last modified: 03.08.2022

---

Шукати плагіни

Цей плагін **не перевірявся з останніми 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://uk.wordpress.org/plugins/imagebase642file/#description)
 * [Відгуки](https://uk.wordpress.org/plugins/imagebase642file/#reviews)
 * [Розробка](https://uk.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/) або
підпишіться на [журнал розробки](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 або вище **
 *  Tested up to **6.0.16**
 *  Версія PHP ** 7.1 або вище **
 *  Мова
 * [English (US)](https://wordpress.org/plugins/imagebase642file/)
 * Позначки
 * [convert image](https://uk.wordpress.org/plugins/tags/convert-image/)[image](https://uk.wordpress.org/plugins/tags/image/)
 *  [Розширений перегляд](https://uk.wordpress.org/plugins/imagebase642file/advanced/)

## Оцінки

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/imagebase642file/reviews/)

## Учасники

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

## Підтримка

Є що сказати? Потрібна допомога?

 [Перейти в форум підтримки](https://wordpress.org/support/plugin/imagebase642file/)