Title: ImageBase642File
Author: James Etu
Published: <strong>Junio 8, 2021</strong>
Last modified: Aŭgusto 3, 2022

---

Priserĉi kromprogramojn

Tiu ĉi kromprogramo **ne estis testita en la 3 lastaj gravaj eldonoj de WordPress**.
Eble ĝi ne plu estas prizorgata kaj ĝi eble havus kongruajn problemojn en novaj 
versioj de WordPress.

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

# ImageBase642File

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

[Elŝuti](https://downloads.wordpress.org/plugin/imagebase642file.zip)

 * [Detaloj](https://eo.wordpress.org/plugins/imagebase642file/#description)
 * [Pritaksoj](https://eo.wordpress.org/plugins/imagebase642file/#reviews)
 * [Programado](https://eo.wordpress.org/plugins/imagebase642file/#developers)

 [Helpo](https://wordpress.org/support/plugin/imagebase642file/)

## Priskribo

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

## OD

### Does this plugin support other post types?

Currently, no. Only page and post are supported

## Pritaksoj

There are no reviews for this plugin.

## Kontribuantoj k. programistoj

“ImageBase642File” estas liberkoda programo. La sekvaj homoj kontribuis al la kromprogramo.

Kontribuantoj

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

[Traduki “ImageBase642File” en vian lingvon.](https://translate.wordpress.org/projects/wp-plugins/imagebase642file)

### Ĉu interesita en programado?

[Browse the code](https://plugins.trac.wordpress.org/browser/imagebase642file/),
check out the [SVN repository](https://plugins.svn.wordpress.org/imagebase642file/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/imagebase642file/)
by [RSS](https://plugins.trac.wordpress.org/log/imagebase642file/?limit=100&mode=stop_on_copy&format=rss).

## Ŝanĝprotokolo

v1.0.1
 – Support for product post type

## Metadatumoj

 *  Version **1.0.1**
 *  Last updated **antaŭ 4 jaroj**
 *  Active installations **10+**
 *  WordPress version ** 5.1 or higher **
 *  Tested up to **6.0.12**
 *  PHP version ** 7.1 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/imagebase642file/)
 * Tags
 * [convert image](https://eo.wordpress.org/plugins/tags/convert-image/)[image](https://eo.wordpress.org/plugins/tags/image/)
 *  [Altnivela rigardo](https://eo.wordpress.org/plugins/imagebase642file/advanced/)

## Pritaksoj

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/)

## Kontribuantoj

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

## Helpo

Got something to say? Need help?

 [Vidi helpforumon](https://wordpress.org/support/plugin/imagebase642file/)