image_opt

    1.0.8 • Public • Published

    image_opt

    image_opt based of the plugin imagemin

    Install

    $ npm i image_opt
    

    Usage

    const image_opt = require('image_opt')
     
    image_opt.convert();
    image_opt.compress();

    API

    image_opt([options])(buffer)

    Returns a Promise<Buffer>.

    methods

    compress

    Type: void

    const compress: () => void compresses .svg, .jpeg and .png files with a given project.

    convert

    Type: void

    const convert: () => void converts all .jpeg and .png files found within a project to next generation image format .webp format.

    buffer

    Type: buffer

    Buffer to optimize.

    License

    MIT © Imagemin

    Install

    npm i image_opt

    DownloadsWeekly Downloads

    10

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    2.5 kB

    Total Files

    3

    Last publish

    Collaborators

    • azterix