piclist 0.2.4 → 0.3.1

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.
@@ -576,5 +576,6 @@ export interface IBuildInCompressOptions {
576
576
  reSizePercent?: number;
577
577
  isRotate?: boolean;
578
578
  rotateDegree?: number;
579
+ isRemoveExif?: boolean;
579
580
  }
580
581
  export {};
@@ -105,8 +105,9 @@ export declare function safeParse<T>(str: string): T | string;
105
105
  export declare const forceNumber: (num?: string | number) => number;
106
106
  export declare const isDev: () => boolean;
107
107
  export declare const isProd: () => boolean;
108
- export declare function AddWatermark(img: Buffer, watermarkType: 'text' | 'image', isFullScreenWatermark?: boolean, watermarkDegree?: number, text?: string, watermarkFontPath?: string, watermarkScaleRatio?: number, watermarkColor?: string, watermarkImagePath?: string, position?: sharp.Gravity): Promise<Buffer>;
109
- export declare function imageAddWaterMark(img: Buffer, options: IBuildInWaterMarkOptions): Promise<Buffer>;
108
+ 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>;
109
+ export declare function imageAddWaterMark(img: Buffer, options: IBuildInWaterMarkOptions, defaultWatermarkFontPath: string): Promise<Buffer>;
110
110
  export declare function imageProcess(img: Buffer, options: IBuildInCompressOptions, rawFormat: string): Promise<Buffer>;
111
- export declare const needAddWatermark: (watermarkOptions: IBuildInWaterMarkOptions | undefined) => boolean;
111
+ export declare const needAddWatermark: (watermarkOptions: IBuildInWaterMarkOptions | undefined, fileExt: string) => boolean;
112
112
  export declare const needCompress: (compressOptions: IBuildInCompressOptions | undefined, fileExt: string) => boolean;
113
+ export declare const removeExif: (img: Buffer, fileExt: string) => Promise<Buffer>;
package/package.json CHANGED
@@ -1,137 +1,145 @@
1
- {
2
- "name": "piclist",
3
- "version": "0.2.4",
4
- "description": "Modified PicGo core, A tool for picture uploading",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.esm.js",
7
- "typings": "dist/index.d.ts",
8
- "bin": {
9
- "picgo": "./bin/picgo"
10
- },
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "scripts": {
15
- "start": "node ./bin/picgo",
16
- "lint": "eslint src/**/*.ts && npm run build",
17
- "test": "echo \"Error: no test specified\" && exit 1",
18
- "build": "cross-env NODE_ENV=production rimraf ./dist && rollup -c rollup.config.js",
19
- "dev": "cross-env NODE_ENV=development rollup -c rollup.config.js -w",
20
- "patch": "npm version patch && git push origin master && git push origin --tags",
21
- "minor": "npm version minor && git push origin master && git push origin --tags",
22
- "major": "npm version major && git push origin master && git push origin --tags",
23
- "cz": "git-cz",
24
- "release": "bump-version"
25
- },
26
- "keywords": [
27
- "picture",
28
- "upload",
29
- "util"
30
- ],
31
- "husky": {
32
- "hooks": {
33
- "pre-commit": "npm run lint"
34
- }
35
- },
36
- "config": {
37
- "commitizen": {
38
- "path": "./node_modules/cz-customizable"
39
- },
40
- "cz-customizable": {
41
- "config": "./node_modules/@picgo/bump-version/.cz-config.js"
42
- }
43
- },
44
- "commitlint": {
45
- "extends": [
46
- "./node_modules/@picgo/bump-version/commitlint-picgo"
47
- ]
48
- },
49
- "author": "Kuingsmile",
50
- "license": "MIT",
51
- "devDependencies": {
52
- "@picgo/bump-version": "^1.1.2",
53
- "@rollup/plugin-commonjs": "^21.0.0",
54
- "@rollup/plugin-json": "^4.1.0",
55
- "@rollup/plugin-node-resolve": "^13.0.5",
56
- "@rollup/plugin-replace": "^3.0.0",
57
- "@types/cross-spawn": "^6.0.0",
58
- "@types/ejs": "^3.0.5",
59
- "@types/fs-extra": "^11.0.1",
60
- "@types/image-size": "^0.0.29",
61
- "@types/inquirer": "^0.0.42",
62
- "@types/js-yaml": "^4.0.5",
63
- "@types/lodash": "^4.14.175",
64
- "@types/md5": "^2.3.2",
65
- "@types/mime-types": "^2.1.0",
66
- "@types/minimatch": "^3.0.3",
67
- "@types/node": "16.11.7",
68
- "@types/resolve": "^0.0.8",
69
- "@types/rimraf": "^3.0.0",
70
- "@types/sharp": "^0.31.1",
71
- "@types/text-to-svg": "^3.1.1",
72
- "@types/tunnel": "^0.0.3",
73
- "@typescript-eslint/eslint-plugin": "3",
74
- "@typescript-eslint/parser": "^3.2.0",
75
- "babel-eslint": "^10.1.0",
76
- "builtins": "^4.0.0",
77
- "conventional-changelog": "^3.0.6",
78
- "copyfiles": "^2.1.0",
79
- "cross-env": "^7.0.3",
80
- "cz-customizable": "^5.10.0",
81
- "eslint": "7",
82
- "eslint-config-standard-with-typescript": "^18.0.2",
83
- "eslint-plugin-import": "2",
84
- "eslint-plugin-node": "11",
85
- "eslint-plugin-promise": "4",
86
- "eslint-plugin-standard": "4",
87
- "execa": "^5.1.1",
88
- "husky": "^1.3.1",
89
- "pre-commit": "^1.2.2",
90
- "rollup": "^2.58.0",
91
- "rollup-plugin-string": "^3.0.0",
92
- "rollup-plugin-terser": "^7.0.2",
93
- "rollup-plugin-typescript2": "^0.30.0",
94
- "rollup-plugin-copy": "^3.4.0",
95
- "typescript": "^4.8.2"
96
- },
97
- "dependencies": {
98
- "@picgo/i18n": "^1.0.0",
99
- "@picgo/store": "^2.0.4",
100
- "axios": "^1.3.4",
101
- "chalk": "^2.4.1",
102
- "commander": "^8.1.0",
103
- "comment-json": "^2.3.1",
104
- "cross-spawn": "^6.0.5",
105
- "dayjs": "^1.11.7",
106
- "download-git-repo": "^3.0.2",
107
- "ejs": "^2.6.1",
108
- "fs-extra": "^11.1.0",
109
- "globby": "^11.0.4",
110
- "image-size": "^0.8.3",
111
- "inquirer": "^6.0.0",
112
- "is-wsl": "^2.2.0",
113
- "js-yaml": "^4.1.0",
114
- "lodash": "^4.17.21",
115
- "md5": "^2.3.0",
116
- "mime-types": "2.1.33",
117
- "minimatch": "^3.0.4",
118
- "minimist": "^1.2.5",
119
- "qiniu": "^7.8.0",
120
- "resolve": "^1.8.1",
121
- "rimraf": "^3.0.2",
122
- "sharp": "^0.31.3",
123
- "text-to-svg": "^3.1.5",
124
- "tunnel": "^0.0.6"
125
- },
126
- "repository": {
127
- "type": "git",
128
- "url": "git+https://github.com/Kuingsmile/PicList-Core.git"
129
- },
130
- "picBed": {
131
- "current": "smms"
132
- },
133
- "plugins": {},
134
- "engines": {
135
- "node": ">= 12.0.0"
136
- }
137
- }
1
+ {
2
+ "name": "piclist",
3
+ "version": "0.3.1",
4
+ "description": "Modified PicGo core, A tool for picture uploading",
5
+ "author": {
6
+ "name": "Kuingsmile",
7
+ "email": "msq@msq.pub"
8
+ },
9
+ "homepage": "https://piclist.cn",
10
+ "bugs": {
11
+ "url": "https://github.com/Kuingsmile/PicList/issues",
12
+ "email": "msq@msq.pub"
13
+ },
14
+ "main": "dist/index.cjs.js",
15
+ "module": "dist/index.esm.js",
16
+ "typings": "dist/index.d.ts",
17
+ "bin": {
18
+ "picgo": "./bin/picgo"
19
+ },
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "scripts": {
24
+ "start": "node ./bin/picgo",
25
+ "lint": "eslint src/**/*.ts && npm run build",
26
+ "test": "echo \"Error: no test specified\" && exit 1",
27
+ "build": "cross-env NODE_ENV=production rimraf ./dist && rollup -c rollup.config.js",
28
+ "dev": "cross-env NODE_ENV=development rollup -c rollup.config.js -w",
29
+ "patch": "npm version patch && git push origin master && git push origin --tags",
30
+ "minor": "npm version minor && git push origin master && git push origin --tags",
31
+ "major": "npm version major && git push origin master && git push origin --tags",
32
+ "cz": "git-cz",
33
+ "release": "bump-version"
34
+ },
35
+ "keywords": [
36
+ "picture",
37
+ "upload",
38
+ "util"
39
+ ],
40
+ "husky": {
41
+ "hooks": {
42
+ "pre-commit": "npm run lint"
43
+ }
44
+ },
45
+ "config": {
46
+ "commitizen": {
47
+ "path": "./node_modules/cz-customizable"
48
+ },
49
+ "cz-customizable": {
50
+ "config": "./node_modules/@picgo/bump-version/.cz-config.js"
51
+ }
52
+ },
53
+ "commitlint": {
54
+ "extends": [
55
+ "./node_modules/@picgo/bump-version/commitlint-picgo"
56
+ ]
57
+ },
58
+ "license": "MIT",
59
+ "devDependencies": {
60
+ "@picgo/bump-version": "^1.1.2",
61
+ "@rollup/plugin-commonjs": "^21.0.0",
62
+ "@rollup/plugin-json": "^4.1.0",
63
+ "@rollup/plugin-node-resolve": "^13.0.5",
64
+ "@rollup/plugin-replace": "^3.0.0",
65
+ "@types/cross-spawn": "^6.0.0",
66
+ "@types/ejs": "^3.0.5",
67
+ "@types/fs-extra": "^11.0.1",
68
+ "@types/image-size": "^0.0.29",
69
+ "@types/inquirer": "^0.0.42",
70
+ "@types/js-yaml": "^4.0.5",
71
+ "@types/lodash": "^4.14.175",
72
+ "@types/md5": "^2.3.2",
73
+ "@types/mime-types": "^2.1.0",
74
+ "@types/minimatch": "^3.0.3",
75
+ "@types/node": "16.11.7",
76
+ "@types/resolve": "^0.0.8",
77
+ "@types/rimraf": "^3.0.0",
78
+ "@types/sharp": "^0.31.1",
79
+ "@types/text-to-svg": "^3.1.1",
80
+ "@types/tunnel": "^0.0.3",
81
+ "@typescript-eslint/eslint-plugin": "3",
82
+ "@typescript-eslint/parser": "^3.2.0",
83
+ "babel-eslint": "^10.1.0",
84
+ "builtins": "^4.0.0",
85
+ "conventional-changelog": "^3.0.6",
86
+ "copyfiles": "^2.1.0",
87
+ "cross-env": "^7.0.3",
88
+ "cz-customizable": "^5.10.0",
89
+ "eslint": "7",
90
+ "eslint-config-standard-with-typescript": "^18.0.2",
91
+ "eslint-plugin-import": "2",
92
+ "eslint-plugin-node": "11",
93
+ "eslint-plugin-promise": "4",
94
+ "eslint-plugin-standard": "4",
95
+ "execa": "^5.1.1",
96
+ "husky": "^1.3.1",
97
+ "pre-commit": "^1.2.2",
98
+ "rollup": "^2.58.0",
99
+ "rollup-plugin-copy": "^3.4.0",
100
+ "rollup-plugin-string": "^3.0.0",
101
+ "rollup-plugin-terser": "^7.0.2",
102
+ "rollup-plugin-typescript2": "^0.30.0",
103
+ "typescript": "^4.8.2"
104
+ },
105
+ "dependencies": {
106
+ "@picgo/i18n": "^1.0.0",
107
+ "@picgo/store": "^2.0.4",
108
+ "axios": "^1.3.4",
109
+ "chalk": "^2.4.1",
110
+ "commander": "^8.1.0",
111
+ "comment-json": "^2.3.1",
112
+ "cross-spawn": "^6.0.5",
113
+ "dayjs": "^1.11.7",
114
+ "download-git-repo": "^3.0.2",
115
+ "ejs": "^2.6.1",
116
+ "fs-extra": "^11.1.0",
117
+ "globby": "^11.0.4",
118
+ "image-size": "^0.8.3",
119
+ "inquirer": "^6.0.0",
120
+ "is-wsl": "^2.2.0",
121
+ "js-yaml": "^4.1.0",
122
+ "lodash": "^4.17.21",
123
+ "md5": "^2.3.0",
124
+ "mime-types": "2.1.33",
125
+ "minimatch": "^3.0.4",
126
+ "minimist": "^1.2.5",
127
+ "qiniu": "^7.8.0",
128
+ "resolve": "^1.8.1",
129
+ "rimraf": "^3.0.2",
130
+ "sharp": "^0.31.3",
131
+ "text-to-svg": "^3.1.5",
132
+ "tunnel": "^0.0.6"
133
+ },
134
+ "repository": {
135
+ "type": "git",
136
+ "url": "git+https://github.com/Kuingsmile/PicList-Core.git"
137
+ },
138
+ "picBed": {
139
+ "current": "smms"
140
+ },
141
+ "plugins": {},
142
+ "engines": {
143
+ "node": ">= 12.0.0"
144
+ }
145
+ }
package/assets/simhei.ttf DELETED
Binary file
Binary file