piclist 1.8.11 → 1.8.12
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/CHANGELOG.md +9 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/utils/common.d.ts +3 -4
- package/package.json +1 -1
package/dist/utils/common.d.ts
CHANGED
|
@@ -110,11 +110,10 @@ export declare const isInputConfigValid: (config: any) => boolean;
|
|
|
110
110
|
export declare function safeParse<T>(str: string): T | string;
|
|
111
111
|
export declare const forceNumber: (num?: string | number) => number;
|
|
112
112
|
export declare const isDev: () => boolean;
|
|
113
|
-
export declare const isProd: () => boolean;
|
|
114
113
|
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>;
|
|
115
114
|
export declare function imageAddWaterMark(img: Buffer, options: IBuildInWaterMarkOptions, defaultWatermarkFontPath: string, logger: ILogger): Promise<Buffer>;
|
|
116
|
-
export declare function
|
|
115
|
+
export declare function imageCompress(img: Buffer, options: IBuildInCompressOptions, rawFormat: string, logger: ILogger): Promise<Buffer>;
|
|
117
116
|
export declare function getConvertedFormat(options: IBuildInCompressOptions | undefined, rawFormat: string): string;
|
|
118
|
-
export declare const
|
|
119
|
-
export declare const
|
|
117
|
+
export declare const isNeedAddWatermark: (watermarkOptions: IBuildInWaterMarkOptions | undefined, fileExt: string) => boolean;
|
|
118
|
+
export declare const isNeedCompress: (compressOptions: IBuildInCompressOptions | undefined, fileExt: string) => boolean;
|
|
120
119
|
export declare const removeExif: (img: Buffer, fileExt: string) => Promise<Buffer>;
|