|
@@ -150,15 +150,15 @@ export default class HcPdfSign {
|
|
|
static async signImage(url) {
|
|
|
const res = await this.getImageSize(url)
|
|
|
if (res.width === res.height) {
|
|
|
- this.signImgCss = { url: url, width: 140, height: 140 }
|
|
|
+ this.signImgCss = { url: url, width: 170, height: 170 }
|
|
|
} else if (res.width > res.height) {
|
|
|
const scaleFactor = 30 / res.height
|
|
|
const newWidth = res.width * scaleFactor
|
|
|
this.signImgCss = { url: url, width: newWidth, height: 30 }
|
|
|
} else {
|
|
|
- const scaleFactor = 100 / res.height
|
|
|
+ const scaleFactor = 170 / res.height
|
|
|
const newWidth = res.width * scaleFactor
|
|
|
- this.signImgCss = { url: url, width: newWidth, height: 100 }
|
|
|
+ this.signImgCss = { url: url, width: newWidth, height: 170 }
|
|
|
}
|
|
|
}
|
|
|
|