Title: Base64 Images
Author: macprawn
Published: <strong>2017 年 2 月 21 日</strong>
Last modified: 2020 年 11 月 28 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# Base64 Images

 作者：[macprawn](https://profiles.wordpress.org/macprawn/)

[下载](https://downloads.wordpress.org/plugin/base64-images.1.1.5.zip)

 * [详情](https://cn.wordpress.org/plugins/base64-images/#description)
 * [评价](https://cn.wordpress.org/plugins/base64-images/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/base64-images/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/base64-images/#developers)

 [支持](https://wordpress.org/support/plugin/base64-images/)

## 描述

**NOTE**
 I am moving away from WordPress development, focusing more on web app 
development, which means maintaining this plugin no longer makes sense for me. It
will no longer receive updates, unless someone wants to take over the code base?
If you are interested, please reach out to me. Thank you all for your interest and
support!

Base64 Images is a simple plugin to encode your media images on your site. Base64
encoding of images can have some [SEO benefits](https://varvy.com/pagespeed/base64-images.html)
for your site.

The plugin is as unobtrusive as possible: activate it, and media images are encoded.
Deactivate it, and they are not. No settings, no gunk left in your database. * It
hooks into WordPress approved hooks and filters to do its job.

(* There is some caching used for speed benefits, but the cached data will be totally
removed when you uninstall the plugin completely.)

## 安装

Install like any other plugin, directly from your plugins page.

Activate the plugin – and that\’s all there is to it!

## 评价

![](https://secure.gravatar.com/avatar/787b6ed3a3510de05e95b3f1a0e3030441027fe420c17eadcb205ddb7b8385ac?
s=60&d=retro&r=g)

### 󠀁[good idea](https://wordpress.org/support/topic/good-idea-63/)󠁿

 [Janokapapa](https://profiles.wordpress.org/janokapapa/) 2018 年 3 月 25 日

good idea for small images

![](https://secure.gravatar.com/avatar/d6d7477c764cf387ae3cd381bfae073b6971fdef46760e58b9d119d0ae69b118?
s=60&d=retro&r=g)

### 󠀁[Good idea, but the idea itself might have issues](https://wordpress.org/support/topic/good-idea-but-the-idea-itself-might-have-issues/)󠁿

 [davince21](https://profiles.wordpress.org/davince21/) 2017 年 8 月 30 日 3 回复

This seems like a great idea to me, but somehow it doesn’t seem to be doing something
quite right. The page size increases from ~2 MB to around 7 MB for me when Base64
encoding the images, and trying to view the page source will hang the entire tab.
Also, the amount of requests increases from 42 requests to 44 according to the Pingdom
Tools. It’s cool that this could improve general SEO scores, but it seems pointless
if the page is actually much slower in practice. Maybe selective encoding where 
it would actually improve things would be better.

![](https://secure.gravatar.com/avatar/678ff094f86fc2787d458963d63ad5f9aa4d5236cd487002e7281275d12a1863?
s=60&d=retro&r=g)

### 󠀁[That’s awesome](https://wordpress.org/support/topic/thats-awesome-10/)󠁿

 [LeoCR2015](https://profiles.wordpress.org/leocr2015/) 2017 年 2 月 23 日

Works perfectly with Apache also with ngnix is very helpful and simple.

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/base64-images/reviews/)

## 贡献者及开发者

「Base64 Images」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ macprawn ](https://profiles.wordpress.org/macprawn/)

[帮助将「Base64 Images」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/base64-images)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/base64-images/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/base64-images/)，或通过[RSS](https://plugins.trac.wordpress.org/log/base64-images/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/base64-images/)。

## 更新日志

#### 1.1.5

 * Tested with newer versions of WoordPress.
 * Added note about end of life

#### 1.1.4

 * Plugin defers action until after page header, to allow open graph images to embed
   un-encoded.

#### 1.1.3

 * Fixed plugin’s Settings link on the Plugins page.

#### 1.1.2

 * Fixed syntax error on older PHP versions.

#### 1.1.1

 * Fixed bug when deleting posts/attachments.

#### 1.1

 * Added setting to control the maximum image size that should be encoded.
 * Fixed bug when multiple images on a page would sometimes not all get encoded.

#### 1.0.2

 * Fixed issue with WooCommerce category images.

#### 1.0.1

 * Fixed small bug when uninstalling the plugin.

#### 1.0

 * Initial release.

## 额外信息

 *  版本 **1.1.5**
 *  最后更新：**6 年前**
 *  活跃安装数量 **40+**
 *  WordPress 版本 ** 4.0.0 或更高版本 **
 *  已测试的最高版本为 **5.5.18**
 *  语言
 * [English (US)](https://wordpress.org/plugins/base64-images/)
 * 标签
 * [base64](https://cn.wordpress.org/plugins/tags/base64/)[encoder](https://cn.wordpress.org/plugins/tags/encoder/)
   [image](https://cn.wordpress.org/plugins/tags/image/)[images](https://cn.wordpress.org/plugins/tags/images/)
 *  [高级视图](https://cn.wordpress.org/plugins/base64-images/advanced/)

## 评级

 4.3 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/base64-images/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/base64-images/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/base64-images/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/base64-images/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/base64-images/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/base64-images/reviews/)

## 贡献者

 *   [ macprawn ](https://profiles.wordpress.org/macprawn/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/base64-images/)