strapi-provider-wasabi-resizedeprecated

Wasabi provider for strapi upload with resize capabilities for images only

Usage no npm install needed!

<script type="module">
  import strapiProviderWasabiResize from 'https://cdn.skypack.dev/strapi-provider-wasabi-resize';
</script>

README

strapi-provider-wasabi-resize

// WARNING: Still HEAVYILY WIP, use at your own risk!

Wasabi upload and resizeing with image opitmization in Strapi.

npm i strapi-provider-wasabi-resize

OR

yarn add strapi-provider-wasabi-resize

Usage

Pre usage requirments

Make sure url and thumb atributes exist in your File.settings.json

extensions/uploads/models/File.settings.json

Using and Configuring

  1. Go to Strapi Admin panel
  2. Go to Plugins
  3. Go to Files and Settings
  4. Select Wasabi upload and resize

Example File.settings.json:

{
  "connection": "default",
  "info": {
    "name": "file",
    "description": ""
  },
  "options": {
    "timestamps": true
  },
  "attributes": {
    "name": {
      "type": "string",
      "configurable": false,
      "required": true
    },``
    "hash": {
      "type": "string",
      "configurable": false,
      "required": true
    },
    "sha256": {
      "type": "string",
      "configurable": false
    },
    "ext": {
      "type": "string",
      "configurable": false
    },
    "mime": {
      "type": "string",
      "configurable": false,
      "required": true
    },
    "size": {
      "type": "string",
      "configurable": false,
      "required": true
    },
    "url": {
      "type": "string",
      "configurable": false,
      "required": true
    },
    "thumb": {
      "type": "string",
      "configurable": false,
      "required": false
    },
    "provider": {
      "type": "string",
      "configurable": false,
      "required": true
    },
    "public_id": {
      "type": "string",
      "configurable": false
    },
    "related": {
      "collection": "*",
      "filter": "field",
      "configurable": false
    }
  }
}

Credits

Based on provider strapi-provider-upload-aws-s3-resize, image resizing usign Sharp.

Resources

Links