piclist 1.7.13 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/utils/common.d.ts +2 -2
- package/package.json +1 -1
package/dist/utils/common.d.ts
CHANGED
|
@@ -110,8 +110,8 @@ export declare const forceNumber: (num?: string | number) => number;
|
|
|
110
110
|
export declare const isDev: () => boolean;
|
|
111
111
|
export declare const isProd: () => boolean;
|
|
112
112
|
export declare function AddWatermark(img: Buffer, watermarkType: 'text' | 'image', defaultWatermarkFontPath: string, isFullScreenWatermark?: boolean, watermarkDegree?: number, text?: string, watermarkFontPath?: string, watermarkScaleRatio?: number, watermarkColor?: string, watermarkImagePath?: string, position?: sharp.Gravity): Promise<Buffer>;
|
|
113
|
-
export declare function imageAddWaterMark(img: Buffer, options: IBuildInWaterMarkOptions, defaultWatermarkFontPath: string): Promise<Buffer>;
|
|
114
|
-
export declare function imageProcess(img: Buffer, options: IBuildInCompressOptions, rawFormat: string): Promise<Buffer>;
|
|
113
|
+
export declare function imageAddWaterMark(img: Buffer, options: IBuildInWaterMarkOptions, defaultWatermarkFontPath: string, logger: ILogger): Promise<Buffer>;
|
|
114
|
+
export declare function imageProcess(img: Buffer, options: IBuildInCompressOptions, rawFormat: string, logger: ILogger): Promise<Buffer>;
|
|
115
115
|
export declare function getConvertedFormat(options: IBuildInCompressOptions | undefined, rawFormat: string): string;
|
|
116
116
|
export declare const needAddWatermark: (watermarkOptions: IBuildInWaterMarkOptions | undefined, fileExt: string) => boolean;
|
|
117
117
|
export declare const needCompress: (compressOptions: IBuildInCompressOptions | undefined, fileExt: string) => boolean;
|