directus-extension-image-upload-resizer

1.1.1 • Public • Published

Image Upload Resizer

Directus extension to automatically lighten and resize large images during upload.
Formats are automatically converted into webp to be more light and web proof and the sizes are decreased if the image is larger than the maximum preset limits.
That can be a helpful tool to optimize server space.

Settings

The extension by default uses two env variables:
EXTENSIONS_REDUCE_ON_UPLOAD_QUALITY = 73
EXTENSIONS_REDUCE_ON_UPLOAD_MAXSIZE = 1920
which respectively set the quality and the maximum size of the images.

To customize the values, you have to add/set these env variables on your Directus instance (and then restart it).

Notes

  • This extension actually converts from the following formats only: jpeg, png, webp.
  • This actual version fixed previous bugs and now works correctly with Directus 10.10

Credits

To Christian Fuss

Package Sidebar

Install

npm i directus-extension-image-upload-resizer

Weekly Downloads

3

Version

1.1.1

License

GPL v2

Unpacked Size

3.04 kB

Total Files

3

Last publish

Collaborators

  • jacpax