@adapttive/remark-image-optimize

1.0.2 • Public • Published

@adapttive/remark-image-optimize

Native lazy loading, class and style attributes with cloudinary optimizations.

Options

{
    loading: "auto", // "lazy" | "eager"
    cloudinary: {
        format: {
            enable: true,
            convert: "webp",
            extensions: "*" // [".png", ".jpeg", ".jpg"]
        },
        quality: {
            enable: true,
            params: "f_auto,q_auto,w_auto,dpr_auto",
        },
        alt: {
            enable: false
        },
        copyright: {
            enable: true,
            text: "©%20adapttive.com"
        }
    },
    css: {
      img: {
        style: "width:500px;height:600px;",
        className: "image"
      },
      p: {
        style: "width:500px;height:600px;",
        className: "para"
      }
    }
}

Check usage.js for example code.

Readme

Keywords

none

Package Sidebar

Install

npm i @adapttive/remark-image-optimize

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

9.83 kB

Total Files

6

Last publish

Collaborators

  • milindsingh