# ImageX

使用火山引擎图片服务（ImageX）作为附件存储空间的 WordPress 插件

[![Latest Version](https://img.shields.io/github/release/sy-records/volcengine-imagex-wordpress.svg)](https://github.com/sy-records/volcengine-imagex-wordpress/releases)
[![License](https://img.shields.io/github/license/sy-records/volcengine-imagex-wordpress?color=red)](LICENSE)
[![website](https://img.shields.io/badge/website-qq52o.me-blue)](https://qq52o.me)
[![contributors](https://img.shields.io/github/contributors/sy-records/volcengine-imagex-wordpress?color=blue)](https://github.com/sy-records/volcengine-imagex-wordpress/graphs/contributors)
[![plugin stars](https://img.shields.io/wordpress/plugin/stars/imagex)](https://wordpress.org/plugins/imagex/)
[![plugin installs](https://img.shields.io/wordpress/plugin/installs/imagex)](https://wordpress.org/plugins/imagex/)

## 插件特色

* [x] 可配置是否上传缩略图和是否保留本地备份
* [x] 本地删除可同步删除火山引擎图片服务 ImageX 中的文件
* [x] 支持替换数据库中旧的资源链接地址
* [x] 支持完整地域使用
* [x] 支持同步历史附件到火山引擎图片服务 ImageX
* [x] 支持火山引擎图片服务 ImageX 图片处理
* [x] 支持后台媒体库列表缩略图显示 (请提交工单开通**源地址访问**功能)

## 安装

### 后台安装（推荐使用）

WordPress 后台安装插件页面搜索`ImageX`，点击安装

### 下载源码

从 Github 下载源码，通过 WordPress 后台上传安装，或者直接将源码上传到 WordPress 插件目录`wp-content/plugins`，然后在后台启用

Github 下载节点：[https://github.com/sy-records/volcengine-imagex-wordpress/releases/latest](https://github.com/sy-records/volcengine-imagex-wordpress/releases/latest)

## 修改配置

* 方法一：在 WordPress 插件管理页面有设置按钮，进行设置
* 方法二：在 WordPress 后台管理左侧导航栏`设置`下`火山引擎ImageX设置`，点击进入设置页面

## 插件截图

![设置页面](screenshot-1.png)

## 常见问题

1. 开启插件并上传图片，在媒体库中不能正常访问，但在文章中显示正常

请前往火山引擎官网 [创建工单](https://console.volcengine.cn/ticket/createTicket/?step=3&ProviderName=%E5%9B%BE%E7%89%87%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88&TemplateName=%E5%8A%9F%E8%83%BD%E9%85%8D%E7%BD%AE) ，问题描述里填写：`WordPress插件开通源地址访问功能`