this.ng2ImgMax.resizeImage(image,400,300).subscribe(result=> { this.uploadImage = result; }, error=> { console.log('error:',error); }) } 如果您有多個(gè)圖像需要一次性調(diào)整大小,請(qǐng)改用resize方法,并將圖片文件數(shù)組作為第一個(gè)參數(shù)傳入。 結(jié)果是Blob類型,但是如果需要,可以使用File構(gòu)造函數(shù)將其轉(zhuǎn)換為...
www.dbjr.com.cn/article/1213...htm 2025-5-27