Skip to content

Commit af086d6

Browse files
committed
Add support for Silverstripe 6
1 parent aaeff5c commit af086d6

File tree

4 files changed

+4
-182
lines changed

4 files changed

+4
-182
lines changed

.gitattributes

Whitespace-only changes.

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ optimised, provided you have the correct binaries installed (see "Installation"
77
The module overrides the default `FlysystemAssetStore` to and transparently optimises
88
the image before adding the image to the store.
99

10-
1110
## Requirements
1211

13-
- `silverstripe/framework` ^4.0 || ^5.0
14-
- `silverstripe/assets` ^1.10 || ^2.0
12+
- `silverstripe/framework` ^4.0 || ^5.0 || ^6.0
13+
- `silverstripe/assets` ^1.10 || ^2.0 || ^3.0
1514
- [spatie/image-optimizer](https://github.com/spatie/image-optimizer) - automatically installed
1615
- JpegOptim, Optipng, Pngquant 2 & Gifsicle binaries (see below)
1716

18-
1917
## Optimisation tools
2018

2119
The module uses [spatie/image-optimizer](https://github.com/spatie/image-optimizer) and will use the
@@ -26,7 +24,6 @@ following optimisers if they are both present and in your default path on your s
2624
- [Pngquant 2](https://pngquant.org/)
2725
- [Gifsicle](http://www.lcdf.org/gifsicle/)
2826

29-
3027
## Installation
3128

3229
```shell
@@ -39,14 +36,12 @@ composer require axllent/silverstripe-image-optimiser
3936
sudo apt-get install jpegoptim optipng pngquant gifsicle
4037
```
4138

42-
4339
### Installing the utilities on Alpine Linux:
4440

4541
```bash
4642
apk add jpegoptim optipng pngquant gifsicle
4743
```
4844

49-
5045
## Usage
5146

5247
Assuming you have the necessary binaries installed, it should "just work" with the default settings

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"issues": "https://github.com/axllent/silverstripe-image-optimiser/issues"
2222
},
2323
"require": {
24-
"silverstripe/framework": "^4.0 || ^5.0",
25-
"silverstripe/assets": "^1.10 || ^2.0",
24+
"silverstripe/framework": "^4.0 || ^5.0 || ^6.0",
25+
"silverstripe/assets": "^1.10 || ^2.0 || ^3.0",
2626
"spatie/image-optimizer": "^1.6.4"
2727
},
2828
"suggest": {

src/Tasks/ImageOptimiserTask.php

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)