| | |
| | | const dimensions = getDimensionsFromBase64Sync(tagValue); |
| | | const { width, height } = dimensions; |
| | | if(tagName == 'sign1' || tagName == 'sign2' || tagName == 'sign3' || tagName == 'sign4'){ |
| | | const targetWidth = 160; |
| | | const targetWidth = 120; |
| | | const scale = targetWidth / width; |
| | | let targetHeight = height * scale; |
| | | targetHeight = Math.max(100, Math.min(400, targetHeight)); |
| | | targetHeight = Math.max(80, Math.min(400, targetHeight)); |
| | | return [targetWidth, Math.round(targetHeight)]; |
| | | }else{ |
| | | const targetWidth = 550; |