Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/astro_compress/dist/options/img.d.ts>default

🗜️ AstroJS compression utilities. Compress CSS, HTML, JavaScript and more.
Go to Latest
interface default
import { type default } from "https://deno.land/x/astro_compress@v1.0.5/dist/options/img.d.ts";

Index Signatures

[key: string]: any

Properties

optional
avif: { quality?: number; lossless?: boolean; effort?: number; chromaSubsampling?: string; }

[avif]

optional
gif: { colours?: number; colors?: number; effort?: number; dither?: number; loop?: number; delay?: number | Array<number>; force?: boolean; }

[gif]

optional
heif: { quality?: number; compression?: string; lossless?: boolean; effort?: number; chromaSubsampling?: string; }

[heif]

optional
jpeg: { quality?: number; progressive?: boolean; chromaSubsampling?: string; optimiseCoding?: boolean; optimizeCoding?: boolean; mozjpeg?: boolean; trellisQuantisation?: boolean; overshootDeringing?: boolean; optimiseScans?: boolean; optimizeScans?: boolean; quantisationTable?: number; quantizationTable?: number; force?: boolean; }

[jpeg]

optional
png: { progressive?: boolean; compressionLevel?: number; adaptiveFiltering?: boolean; palette?: boolean; quality?: number; effort?: number; colours?: number; colors?: number; dither?: number; force?: boolean; }

[png]

optional
raw: { depth?: string; }

[raw]

optional
tiff: { quality?: number; force?: boolean; compression?: string; predictor?: string; pyramid?: boolean; tile?: boolean; tileWidth?: number; tileHeight?: number; xres?: number; yres?: number; resolutionUnit?: string; bitdepth?: number; }

[tiff]

optional
webp: { quality?: number; alphaQuality?: number; lossless?: boolean; nearLossless?: boolean; smartSubsample?: boolean; effort?: number; loop?: number; delay?: number | Array<number>; force?: boolean; }

[webp]