https://github.com/caseywebb/ghost-storage-preprocessor-transform-sqip
Create SVG Placeholders for Ghost Image Uploads
https://github.com/caseywebb/ghost-storage-preprocessor-transform-sqip
Last synced: about 2 months ago
JSON representation
Create SVG Placeholders for Ghost Image Uploads
- Host: GitHub
- URL: https://github.com/caseywebb/ghost-storage-preprocessor-transform-sqip
- Owner: caseyWebb
- Created: 2018-02-09T22:38:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T14:28:20.000Z (almost 2 years ago)
- Last Synced: 2024-10-18T07:12:26.502Z (7 months ago)
- Language: TypeScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ghost Storage Preprocessor SQIP Transform
> Creates a [SQIP][] for every uploaded file and appends `.sqip.svg`
Used with [ghost-storage-preprocessor][].
## Prerequisites
- Golang (https://golang.org/doc/install)
- Primitive (https://github.com/fogleman/primitive)## Installation
```bash
$ npm install ghost-storage-preprocessor-sqip
$ mkdir -p ./content/adapters/storage/preprocessor/transforms
$ cp -r ./node_modules/ghost-storage-preprocessor-transform-sqip ./content/adapters/storage/preprocessor/transforms/sqip
```## Usage
```json
{
"storage": {
"active": "preprocessor",
"preprocessor": {
"transforms": [
["sqip", {}]
]
}
}
}
```[SQIP]: https://github.com/technopagan/sqip
[ghost-storage-preprocessor]: https://github.com/caseyWebb/ghost-storage-preprocessor