KeystoneJS:如何在上传到 Cloudinary 之前或期间创建多个不同大小的图像版本?

KeystoneJS: How to create many versions of an image with different size, before or during upload to Cloudinary?

我正在 keystone 中创建一个包含图像的模型,如下所示:

MyModel.add({
  image: { type: Types.CloudinaryImage, autoCleanup: true }
})

我想要 3 个版本,有 3 个不同的尺寸,比如 thumbnail, normal, and large。在 RubyOnRails 中,您可以使用回形针 gem 来完成。

Keystone/Cloudinary有类似的工具吗?

答案在这里: fieldtypes-cloudinaryimage 您可以设置 "width" 和 "height"。 或宽度下划线方法: 比例(宽度、高度、选项)