优化图片上传
This commit is contained in:
@@ -310,7 +310,7 @@ Component({
|
||||
height: Math.round(this.data.height * this.data.export_scale),
|
||||
destWidth: this.data.width * this.data.export_scale,
|
||||
destHeight: Math.round(this.data.height) * this.data.export_scale,
|
||||
fileType: 'png',
|
||||
fileType: 'jpg',
|
||||
quality: this.data.quality,
|
||||
canvasId: this.data.el,
|
||||
success: (res) => {
|
||||
@@ -849,7 +849,7 @@ Component({
|
||||
height: Math.round(this.data.height * this.data.export_scale),
|
||||
destWidth: this.data.width * this.data.export_scale,
|
||||
destHeight: Math.round(this.data.height) * this.data.export_scale,
|
||||
fileType: 'png',
|
||||
fileType: 'jpg',
|
||||
quality: this.data.quality,
|
||||
canvasId: this.data.el,
|
||||
success: (res) => {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
<van-overlay show="{{showPaint}}" z-index="99999999" >
|
||||
<view class="upage" style="position:reltive;background-color: #000;height:100vh;" catch:tap="hideBarsHandler" wx:if="{{showPaint}}" >
|
||||
|
||||
|
||||
<canvas canvas-id="myCanvas" disable-scroll="true" bindtouchstart="touchStart"
|
||||
bindtouchmove="touchMove" bindtouchend="touchEnd" wx:if="{{hasChoosedImg}}"
|
||||
style="position:relative;margin:0 auto;height: {{(canvasHeightLen == 0) ? canvasHeight : canvasHeightLen}}px; width: {{canvasWidth}}px; background: url('{{background}}');background-position: 0 0; background-size: {{canvasWidth}}px {{canvasHeight}}px"
|
||||
|
||||
Reference in New Issue
Block a user