Provider upload cloudinary, how to set image options?

System Information
  • Strapi Version: 4.4.1
  • Node Version: v16.17.0
  • NPM Version: >=6.0.0

Hello!

I am using @strapi/provider-upload-cloudinary, ^4.4.3 and have Cloudinary serving images, which is great. What I am struggling to understand is where do I put image options for things like transformations. Currently I just wish to use quality: "auto" and fetch_format: “auto”`.

I’m guessing they live in my /config/plugins.js somewhere, as that is where I have set everything else.

module.exports = ({ env }) => ({
  // ...
  upload: {
    config: {
      provider: "cloudinary",
      providerOptions: {
        cloud_name: env("CLOUDINARY_NAME"),
        api_key: env("CLOUDINARY_KEY"),
        api_secret: env("CLOUDINARY_SECRET"),
      },
      actionOptions: {
        upload: {},
        delete: {},
      },
    },
  },
  // ...
});

Some pointers would be great

1 Like