1.2.1 • Published 4 years ago

gatsby-remark-aliyun-images v1.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

gatsby-remark-aliyun-images

English | 中文

Processing images from the specified aliyun OSS bucket in Markdown

Installation

npm install gatsby-remark-aliyun-images ---save

Usage

// gatsby-config.js
plugins: [
  {
    resolve: `gatsby-transformer-remark`,
    options: {
      plugins: [
        {
          resolve: `gatsby-remark-aliyun-images`,
          options: {
            bucket: 'xxx.oss-cn-beijing.aliyuncs.com' // OR ['xxx.oss-cn-beijing.aliyuncs.com']
            maxWidth: 650,
          },
        },
      ],
    },
  },
];

Options

NameDefaultDescription
bucketAliyun OSS bucket domain. Support for incoming multiple bucket domains
maxWidth650maximum image width, in pixels, for scaling the image
withWebpfalseprefer WebP format, use WebP image when browser is supported
interlacefalseprogressive display (invalid when using WebP)
quality50image quality conversion, in percentages, for quality compression of images

LICENSE

MIT

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago