Compare commits
2
Commits
b738d7d6da
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17c6e5b3dd | ||
|
|
3a2d01564e |
@@ -7,3 +7,7 @@ build/
|
||||
# Playwright test output (created by `npx playwright test`).
|
||||
test-results/
|
||||
playwright-report/
|
||||
|
||||
.superpowers/
|
||||
docs/
|
||||
.vscode/
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
# SoloFilters Image Enhancements
|
||||
|
||||
Add Instagram-style CSS filters to images in the WordPress block editor.
|
||||
|
||||
## About
|
||||
|
||||
This WordPress plugin registers a new "Filtered Image" block that lets users pick a named filter preset and adjust its intensity. Filters are applied with CSS only, so they are reversible, lightweight, and the original image keeps its alt text.
|
||||
|
||||
## Requirements
|
||||
|
||||
- WordPress 6.4+
|
||||
- PHP 7.4+
|
||||
|
||||
## Installation
|
||||
|
||||
1. Clone or download this repository to your WordPress plugins directory:
|
||||
|
||||
```bash
|
||||
wp-content/plugins/solofilters-image-enhancements/
|
||||
```
|
||||
|
||||
2. Activate the plugin from the WordPress admin panel
|
||||
|
||||
## Features
|
||||
|
||||
- **Filtered Image Block** – A new block type for applying CSS filters to images
|
||||
- **Preset Filters** – Choose from multiple named filter presets
|
||||
- **Adjustable Intensity** – Control filter intensity with a slider
|
||||
- **Non-destructive** – Filters are applied with CSS only; original images remain unchanged
|
||||
- **Accessibility** – Alt text is preserved on filtered images
|
||||
|
||||
## Screenshots
|
||||
|
||||
### Editor
|
||||
|
||||
The block's inspector panel in the WordPress block editor. The filter swatch grid sits in the right-hand sidebar alongside the intensity slider.
|
||||
|
||||

|
||||
|
||||
### Frontend
|
||||
|
||||
All eight filter presets applied to the same image, side by side. From left to right, top to bottom: Normal, Warm, Cool, Vivid, Fade, Mono, Dramatic, Sepia.
|
||||
|
||||

|
||||
|
||||
## Development
|
||||
|
||||
### Setup
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
### Build
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Testing
|
||||
|
||||
Run unit tests:
|
||||
|
||||
```bash
|
||||
npm run test:jest
|
||||
```
|
||||
|
||||
Run end-to-end tests:
|
||||
|
||||
```bash
|
||||
npm run test:e2e
|
||||
```
|
||||
|
||||
## Changelog
|
||||
|
||||
### [0.1.0] - 2026-08-06
|
||||
|
||||
- Initial release
|
||||
|
||||
## License
|
||||
|
||||
GPLv2 or later – [View License](https://www.gnu.org/licenses/gpl-2.0.html)
|
||||
|
||||
## Author
|
||||
|
||||
[Keith Solomon](https://keithsolomon.net)
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.2 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
+14
@@ -17,6 +17,20 @@ named filter preset and adjust its intensity. Filters are applied with CSS
|
||||
only, so they are reversible, lightweight, and the original image keeps
|
||||
its alt text.
|
||||
|
||||
== Screenshots ==
|
||||
|
||||
1. The block's inspector panel in the WordPress block editor. The filter
|
||||
swatch grid sits in the right-hand sidebar alongside the intensity
|
||||
slider.
|
||||
|
||||

|
||||
|
||||
2. All eight filter presets applied to the same image, side by side. From
|
||||
left to right, top to bottom: Normal, Warm, Cool, Vivid, Fade, Mono,
|
||||
Dramatic, Sepia.
|
||||
|
||||

|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 0.1.0 =
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
* Version: 0.1.0
|
||||
* Requires at least: 6.4
|
||||
* Requires PHP: 7.4
|
||||
* Author: ksolo
|
||||
* Author: Keith Solomon
|
||||
* Author URI: https://keithsolomon.net
|
||||
* License: GPL-2.0-or-later
|
||||
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||
* Text Domain: solofilters-image-enhancements
|
||||
@@ -67,4 +68,5 @@ function solofilters_image_enhancements_render_block( array $attributes, string
|
||||
function solofilters_image_enhancements_load_textdomain(): void {
|
||||
load_plugin_textdomain( 'solofilters-image-enhancements', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
||||
}
|
||||
|
||||
add_action( 'init', 'solofilters_image_enhancements_load_textdomain' );
|
||||
|
||||
Reference in New Issue
Block a user