picgo-plugin-cfimgbed
v1.1.0
Published
PicGo plugin for uploading images to CF-Imgbed
Maintainers
Readme
PicGo Plugin for CF-Imgbed
A PicGo plugin for uploading images to a CF-Imgbed (or compatible) instance.
Features
- Upload images to your self-hosted or public CF-Imgbed service.
- Supports custom API endpoint.
- Supports API Key authentication.
- Supports specifying an upload directory.
Installation
- Open PicGo application.
- Go to
Plugin Settings. - Search for
cfimgbedand clickInstall. - Restart PicGo (if prompted or if the uploader doesn't appear).
Alternatively, you can install via PicGo CLI:
picgo install cfimgbedConfiguration
After installation, configure the plugin in PicGo:
Go to
Plugin Settingsand findcfimgbed. Click the gear icon or right-click to configure. Alternatively, go toPicGo Settings->Set Uploader->CF-Imgbed.Fill in the following fields:
- API Endpoint: The base URL of your CF-Imgbed instance (e.g.,
https://your-imgbed-domain.com). This should be the root URL, and the plugin will append/api/upload. - API Key: Your full API key for CF-Imgbed.
- Upload Directory (Optional): Specify a default directory on the server where images will be uploaded (e.g.,
mypics/travel). If left empty, images will be uploaded to the server's default location.
- API Endpoint: The base URL of your CF-Imgbed instance (e.g.,
Usage
- In PicGo, select
CF-Imgbedas your active uploader from the uploader selection menu. - Upload images as you normally would with PicGo (drag & drop, clipboard, etc.).
- The uploaded image URL will be automatically copied to your clipboard.
CF-Imgbed API
This plugin uses the /api/upload endpoint of the CF-Imgbed API. It sends a POST request with a JSON payload containing base64 encoded image data.
Request Body Example:
{
"list": ["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA..."],
"uploadDirectory": "optional/path"
}Headers:
X-API-Key: your_full_api_keyContent-Type: application/json
For more details on the CF-Imgbed API, please refer to its documentation (assuming this is the correct project, please update if not).
