@jrmc/adonis-attachment
Version:
Turn any field on your Lucid model to an attachment data type
13 lines (12 loc) • 309 B
JavaScript
/**
* @jrmc/adonis-attachment
*
* @license MIT
* @copyright Jeremy Chaufourier <jeremy@chaufourier.fr>
*/
import { encode } from 'blurhash';
export default {
async encode(pixels, width, height, componentX, componentY) {
return encode(pixels, width, height, componentX, componentY);
},
};