@@ -55,7 +55,7 @@ export const enum ChromaSubsampling {
5555 * What if the chroma subsampling model is 4:0:0?
5656 * That says to use every pixel of luma data, but that each row has 0 chroma samples applied to it. The resulting image, then, is comprised solely of the luminance data—a greyscale image.
5757 */
58- Yuv400 = 3 ,
58+ Yuv400 = 3
5959}
6060export const enum FastResizeFilter {
6161 /**
@@ -94,7 +94,7 @@ export const enum FastResizeFilter {
9494 * Lanczos filter (a truncated sinc) on all pixels that may contribute
9595 * to the output value.
9696 */
97- Lanczos3 = 5 ,
97+ Lanczos3 = 5
9898}
9999export const enum ResizeFit {
100100 /**
@@ -108,7 +108,7 @@ export const enum ResizeFit {
108108 * Preserving aspect ratio
109109 * resize the image to be as large as possible while ensuring its dimensions are less than or equal to both those specified.
110110 */
111- Inside = 2 ,
111+ Inside = 2
112112}
113113export interface FastResizeOptions {
114114 width : number
@@ -126,18 +126,14 @@ export interface JpegCompressOptions {
126126 optimizeScans ?: boolean
127127}
128128export function compressJpegSync ( input : Buffer , options ?: JpegCompressOptions | undefined | null ) : Buffer
129- export function compressJpeg (
130- input : Buffer ,
131- options ?: JpegCompressOptions | undefined | null ,
132- signal ?: AbortSignal | undefined | null ,
133- ) : Promise < Buffer >
129+ export function compressJpeg ( input : Buffer , options ?: JpegCompressOptions | undefined | null , signal ?: AbortSignal | undefined | null ) : Promise < Buffer >
134130export const enum CompressionType {
135131 /** Default compression level */
136132 Default = 0 ,
137133 /** Fast, minimal compression */
138134 Fast = 1 ,
139135 /** High compression level */
140- Best = 2 ,
136+ Best = 2
141137}
142138export const enum FilterType {
143139 /**
@@ -157,7 +153,7 @@ export const enum FilterType {
157153 * Uses a heuristic to select one of the preceding filters for each
158154 * scanline rather than one filter for the entire image
159155 */
160- Adaptive = 5 ,
156+ Adaptive = 5
161157}
162158export interface PngEncodeOptions {
163159 /** Default is `CompressionType::Default` */
@@ -175,7 +171,7 @@ export const enum PngRowFilter {
175171 Entropy = 6 ,
176172 Bigrams = 7 ,
177173 BigEnt = 8 ,
178- Brute = 9 ,
174+ Brute = 9
179175}
180176export interface PNGLosslessOptions {
181177 /**
@@ -220,11 +216,7 @@ export interface PNGLosslessOptions {
220216 strip ?: boolean
221217}
222218export function losslessCompressPngSync ( input : Buffer , options ?: PNGLosslessOptions | undefined | null ) : Buffer
223- export function losslessCompressPng (
224- input : Buffer ,
225- options ?: PNGLosslessOptions | undefined | null ,
226- signal ?: AbortSignal | undefined | null ,
227- ) : Promise < Buffer >
219+ export function losslessCompressPng ( input : Buffer , options ?: PNGLosslessOptions | undefined | null , signal ?: AbortSignal | undefined | null ) : Promise < Buffer >
228220export interface PngQuantOptions {
229221 /** default is 70 */
230222 minQuality ?: number
@@ -243,11 +235,7 @@ export interface PngQuantOptions {
243235 posterization ?: number
244236}
245237export function pngQuantizeSync ( input : Buffer , options ?: PngQuantOptions | undefined | null ) : Buffer
246- export function pngQuantize (
247- input : Buffer ,
248- options ?: PngQuantOptions | undefined | null ,
249- signal ?: AbortSignal | undefined | null ,
250- ) : Promise < Buffer >
238+ export function pngQuantize ( input : Buffer , options ?: PngQuantOptions | undefined | null , signal ?: AbortSignal | undefined | null ) : Promise < Buffer >
251239export const enum Orientation {
252240 /** Normal */
253241 Horizontal = 1 ,
@@ -257,7 +245,7 @@ export const enum Orientation {
257245 MirrorHorizontalAndRotate270Cw = 5 ,
258246 Rotate90Cw = 6 ,
259247 MirrorHorizontalAndRotate90Cw = 7 ,
260- Rotate270Cw = 8 ,
248+ Rotate270Cw = 8
261249}
262250/**
263251 * Available Sampling Filters.
@@ -337,7 +325,7 @@ export const enum ResizeFilterType {
337325 /** Gaussian Filter */
338326 Gaussian = 3 ,
339327 /** Lanczos with window 3 */
340- Lanczos3 = 4 ,
328+ Lanczos3 = 4
341329}
342330export const enum JsColorType {
343331 /** Pixel is 8-bit luminance */
@@ -359,7 +347,7 @@ export const enum JsColorType {
359347 /** Pixel is 32-bit float RGB */
360348 Rgb32F = 8 ,
361349 /** Pixel is 32-bit float RGBA */
362- Rgba32F = 9 ,
350+ Rgba32F = 9
363351}
364352export interface Metadata {
365353 width : number
@@ -400,12 +388,7 @@ export class Transformer {
400388 * The image is scaled to the maximum possible size that fits
401389 * within the bounds specified by `width` and `height`.
402390 */
403- resize (
404- widthOrOptions : number | ResizeOptions ,
405- height ?: number | undefined | null ,
406- filter ?: ResizeFilterType | undefined | null ,
407- fit ?: ResizeFit | undefined | null ,
408- ) : this
391+ resize ( widthOrOptions : number | ResizeOptions , height ?: number | undefined | null , filter ?: ResizeFilterType | undefined | null , fit ?: ResizeFit | undefined | null ) : this
409392 /**
410393 * Resize this image using the specified filter algorithm.
411394 * The image is scaled to the maximum possible size that fits
0 commit comments