Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pixielabs/directus-extension-blurhash
A Directus extension that generates blurhashes for uploaded images.
https://github.com/pixielabs/directus-extension-blurhash
Last synced: about 2 months ago
JSON representation
A Directus extension that generates blurhashes for uploaded images.
- Host: GitHub
- URL: https://github.com/pixielabs/directus-extension-blurhash
- Owner: pixielabs
- License: mit
- Created: 2022-03-10T14:28:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-07T14:58:03.000Z (over 1 year ago)
- Last Synced: 2024-10-30T01:37:03.741Z (2 months ago)
- Language: TypeScript
- Size: 186 KB
- Stars: 21
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-directus - BlurHash - A Directus extension that generates blurhashes for uploaded images. (Extensions / Community)
README
A Directus extension that generates blurhashes for uploaded images.
Requires Directus 10. May work on Directus 9 with some tweaking, YMMV.
# Setup
1. `npm i @pixielabs/directus-extension-blurhash --save`. A post-install script
will add a migration to your `extensions/migrations` folder.
2. Restart your Directus app if necessary.# Development
```
$ npm i --ignore-scripts
$ npm run dev
```In another terminal, go to your directus installation and:
1. Copy the migration from this folder
2. Use `wml` to auto-copy changes during dev (a symlink stops Node from
resolving our Sharp dependency).```
wml add path/to/@pixielabs/directus-extension-blurhash node_modules/@pixielabs/directus-extension-blurhash
# Accept the defaults
wml start
```If `wml start` does nothing, check [this issue for a fix](https://github.com/wix-incubator/wml/issues/48).
2. Start Directus (`npx directus start`)