directus-extension-custom-image-preview
v1.0.0
Published
A customizable image preview display for Directus
Maintainers
Readme
Directus Custom Image Preview Extension
A Directus extension that allows you to display customizable image previews.
Features
- Display as circle
- Preserve aspect ratio
- Display checker background for transparent images
Installation
Install the extension from the Directus Marketplace. See the Official Guide for more information.
Or if you prefer to install manually:
npm install directus-extension-custom-image-previewUsage
Select the "Image Preview" display in the "Display" section of the field settings.
Options
- Preserve aspect ratio: Preserves the aspect ratio of the image (cannot be used together with "Display as circle").
- Display checker background: Displays a checker background behind the image, useful for transparent images.
- Display as circle: Displays the image as a circle (cannot be used together with "Preserve aspect ratio").
Development
Install dependencies
$ npm install --legacy-peer-deps
Run the extension
$ npm run dev
