7.0.4 • Published 6 months ago

@types/imagemin-zopfli v7.0.4

Weekly downloads
210
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/imagemin-zopfli

Summary

This package contains type definitions for imagemin-zopfli (https://github.com/imagemin/imagemin-zopfli).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagemin-zopfli.

index.d.ts

// Type definitions for imagemin-zopfli 7.0
// Project: https://github.com/imagemin/imagemin-zopfli
// Definitions by: Marius Metzger <https://github.com/crushedpixel>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import { Plugin } from 'imagemin';

declare function imageminZopfli(options?: imageminZopfli.Options): Plugin;

declare namespace imageminZopfli {
    interface Options {
        /** Convert 16-bit per channel images to 8-bit per channel. */
        '8bit'?: boolean | undefined;

        /**
         * Remove colors behind alpha channel 0.
         * No visual difference, removes hidden information.
         */
        transparent?: boolean | undefined;

        /**
         * The number of iterations, more iterations makes it slower
         * but provides slightly better compression.
         * Default: 15 for small files, 5 for large files.
         */
        iterations?: number | undefined;

        /**
         * Compress more: use more iterations (depending on file size).
         */
        more?: boolean | undefined;
    }
}

export = imageminZopfli;

Additional Details

  • Last updated: Thu, 08 Jul 2021 14:23:09 GMT
  • Dependencies: @types/imagemin
  • Global values: none

Credits

These definitions were written by Marius Metzger.

7.0.4

6 months ago

7.0.3

7 months ago

7.0.2

8 months ago

7.0.1

3 years ago

7.0.0

3 years ago