mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-07 05:32:52 +08:00
✨ Feature(custom): add image watermark opacity setting
ISSUES CLOSED: #348
This commit is contained in:
@@ -306,6 +306,24 @@
|
|||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
v-if="waterMarkForm.watermarkType === 'image'"
|
||||||
|
class="form-group"
|
||||||
|
>
|
||||||
|
<label>{{ $t('pages.imageProcess.watermark.imageOpacity') }}</label>
|
||||||
|
<input
|
||||||
|
v-model.number="waterMarkForm.watermarkImageOpacity"
|
||||||
|
type="range"
|
||||||
|
min="0"
|
||||||
|
max="255"
|
||||||
|
step="1"
|
||||||
|
class="form-range"
|
||||||
|
>
|
||||||
|
<div class="range-value">
|
||||||
|
{{ waterMarkForm.watermarkImageOpacity || 0 }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Watermark Position -->
|
<!-- Watermark Position -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>{{ $t('pages.imageProcess.watermark.position') }}</label>
|
<label>{{ $t('pages.imageProcess.watermark.position') }}</label>
|
||||||
@@ -583,7 +601,8 @@ const waterMarkForm = reactive<IBuildInWaterMarkOptions>({
|
|||||||
watermarkScaleRatio: 0.15,
|
watermarkScaleRatio: 0.15,
|
||||||
watermarkColor: '#CCCCCC73',
|
watermarkColor: '#CCCCCC73',
|
||||||
watermarkImagePath: '',
|
watermarkImagePath: '',
|
||||||
watermarkPosition: 'southeast'
|
watermarkPosition: 'southeast',
|
||||||
|
watermarkImageOpacity: 255
|
||||||
})
|
})
|
||||||
|
|
||||||
const compressForm = reactive<IBuildInCompressOptions>({
|
const compressForm = reactive<IBuildInCompressOptions>({
|
||||||
|
|||||||
@@ -104,7 +104,8 @@
|
|||||||
"bottomLeft": "Bottom Left",
|
"bottomLeft": "Bottom Left",
|
||||||
"bottomRight": "Bottom Right",
|
"bottomRight": "Bottom Right",
|
||||||
"center": "Center"
|
"center": "Center"
|
||||||
}
|
},
|
||||||
|
"imageOpacity": "Watermark Opacity"
|
||||||
},
|
},
|
||||||
"transform": {
|
"transform": {
|
||||||
"title": "Transform Settings",
|
"title": "Transform Settings",
|
||||||
|
|||||||
@@ -104,7 +104,8 @@
|
|||||||
"bottomLeft": "左下",
|
"bottomLeft": "左下",
|
||||||
"bottomRight": "右下",
|
"bottomRight": "右下",
|
||||||
"center": "中"
|
"center": "中"
|
||||||
}
|
},
|
||||||
|
"imageOpacity": "水印透明度"
|
||||||
},
|
},
|
||||||
"transform": {
|
"transform": {
|
||||||
"title": "变换设置",
|
"title": "变换设置",
|
||||||
|
|||||||
@@ -104,7 +104,8 @@
|
|||||||
"bottomLeft": "左下",
|
"bottomLeft": "左下",
|
||||||
"bottomRight": "右下",
|
"bottomRight": "右下",
|
||||||
"center": "中"
|
"center": "中"
|
||||||
}
|
},
|
||||||
|
"imageOpacity": "水印透明度"
|
||||||
},
|
},
|
||||||
"transform": {
|
"transform": {
|
||||||
"title": "變換設置",
|
"title": "變換設置",
|
||||||
|
|||||||
Reference in New Issue
Block a user