Skip to content

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

License

Notifications You must be signed in to change notification settings

adapttive/remark-image-optimize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published