Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
table
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed Aug 25, 2019
1 parent 2ad277a commit c5af2af
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions readme.md
Expand Up @@ -55,19 +55,13 @@ echo $img->resize(234)->html();
## Settings

**apikey**
- default: `null` – your imageoptim apikey as string
| bnomei.thumbimageoptim. | Default | Description |
|---------------------------|----------------|---------------------------|
| apikey | `null` | Your imageoptim apikey as string. |
| optimize | `true` | set to `false` to disable optimization with this plugin |
| forceupload | `false` | set to `true` when images are not public available (like a website with htpasswd). |

> TIP: you can also set a callback if you use the [dotenv Plugin](https://github.com/bnomei/kirby3-dotenv)
> `'bnomei.thumbimageoptim.apikey' => function() { return env('IMAGEOPTIM_APIKEY'); },`
### bnomei.thumbimageoptim.optimize
- default: `true`
- set to `false` to disable optimization with this plugin

### bnomei.thumbimageoptim.forceupload
- default: `false`
- set to `true` when images are not public available (like a website with htpasswd).
> TIP: You can also set a callback if you use the [dotenv Plugin](https://github.com/bnomei/kirby3-dotenv). <br>`'bnomei.thumbimageoptim.apikey' => function() { return env('IMAGEOPTIM_APIKEY'); },`
> DANGER: Content is always uploaded on localhost. `allow_url_fopen` PHP setting must be enabled for the API to do uploading. Check with `ini_get('allow_url_fopen')`. Please be aware of the potential security risks caused by `allow_url_fopen`!
Expand Down

0 comments on commit c5af2af

Please sign in to comment.