Skip to content

Commit

Permalink
✨ Feature: add remove exif info
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #18
  • Loading branch information
Kuingsmile committed Mar 10, 2023
1 parent 5657ed3 commit a46b092
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -64,7 +64,7 @@
"mime-types": "^2.1.35",
"mitt": "^3.0.0",
"nodejs-file-downloader": "^4.10.6",
"piclist": "^0.3.0",
"piclist": "^0.3.1",
"pinia": "^2.0.32",
"pinia-plugin-persistedstate": "^3.1.0",
"qiniu": "^7.8.0",
Expand Down
11 changes: 10 additions & 1 deletion src/renderer/pages/PicGoSetting.vue
Expand Up @@ -637,6 +637,13 @@
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="是否移除Eixf信息">
<el-switch
v-model="compressForm.isRemoveExif"
active-color="#13ce66"
inactive-color="#ff4949"
/>
</el-form-item>
<el-form-item label="压缩质量">
<el-input-number
v-model="compressForm.quality"
Expand Down Expand Up @@ -797,7 +804,8 @@ const compressForm = reactive<any>({
isReSizeByPercent: false,
reSizePercent: 50,
isRotate: false,
rotateDegree: 0
rotateDegree: 0,
isRemoveExif: false
})
function closeDialog () {
Expand All @@ -824,6 +832,7 @@ async function initForm () {
compressForm.reSizePercent = compress.reSizePercent ?? 50
compressForm.isRotate = compress.isRotate ?? false
compressForm.rotateDegree = compress.rotateDegree ?? 0
compressForm.isRemoveExif = compress.isRemoveExif ?? false
}
if (watermark) {
waterMarkForm.isAddWatermark = watermark.isAddWatermark ?? false
Expand Down
11 changes: 10 additions & 1 deletion src/renderer/pages/Upload.vue
Expand Up @@ -228,6 +228,13 @@
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="是否移除Eixf信息">
<el-switch
v-model="compressForm.isRemoveExif"
active-color="#13ce66"
inactive-color="#ff4949"
/>
</el-form-item>
<el-form-item label="压缩质量">
<el-input-number
v-model="compressForm.quality"
Expand Down Expand Up @@ -391,7 +398,8 @@ const compressForm = reactive<any>({
isReSizeByPercent: false,
reSizePercent: 50,
isRotate: false,
rotateDegree: 0
rotateDegree: 0,
isRemoveExif: false
})
function closeDialog () {
Expand All @@ -418,6 +426,7 @@ async function initData () {
compressForm.reSizePercent = compress.reSizePercent ?? 50
compressForm.isRotate = compress.isRotate ?? false
compressForm.rotateDegree = compress.rotateDegree ?? 0
compressForm.isRemoveExif = compress.isRemoveExif ?? false
}
if (watermark) {
waterMarkForm.isAddWatermark = watermark.isAddWatermark ?? false
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -10989,10 +10989,10 @@ performance-now@^2.1.0:
resolved "https://registry.npmmirror.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==

piclist@^0.3.0:
version "0.3.0"
resolved "https://registry.npmjs.org/piclist/-/piclist-0.3.0.tgz#54cdc2273058e5181619aec06c141d1759ccbcc4"
integrity sha512-cmNWKY/whYO/RFDDmwnTkc5ojlp+4fDvrYzo/moZbwIIJWsgMZlnMpMFthAjJVfk3hAGHQrsJHxY2IZuMVg66w==
piclist@^0.3.1:
version "0.3.1"
resolved "https://registry.npmjs.org/piclist/-/piclist-0.3.1.tgz#afc77aa481f7bd755956fed6ae77fcbba9976ac0"
integrity sha512-Qf6lGTqQmISHXVdMP4Yip02S27gTyKuOgoT7EdFtMpcPRZQNJxqpOZDJag7AtmuKscdrfB8Frsc1GttIoLe74A==
dependencies:
"@picgo/i18n" "^1.0.0"
"@picgo/store" "^2.0.4"
Expand Down

0 comments on commit a46b092

Please sign in to comment.