broccoli-thumbnail
Information
Copy and resizes images given an input tree.
Why? For example, to generate a low quality copy of each image and improve the page speed when loading.
Installation & usage
npm install --save broccoli-thumbnail
// Rawconst Thumbnail = ; const myTree = 'assets/images';const thumbnailTree = myTree width: 128 prefix: 'small-';
// Ember addon styleconst Thumbnail = ; moduleexports = // ... { return 'assets/images' /* options */ ; };
Options
Option | Type | Defaults | Description |
---|---|---|---|
prefix | String |
thumbnail_ |
Prefix to be added on each thumbnail name |
extensions | Array |
['jpg', 'jpeg', 'gif', 'png'] |
Files to be processed |
persist | Boolean |
false |
Use disk cache |
width | Number |
64 |
Thumbnail width |
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
See the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details