How does weex scale the picture?

problem description

the picture needs to be scaled proportionally,

the environmental background of the problems and what methods you have tried

I have tried to operate within the @ load function, but the effect is not satisfactory

related codes

/ / Please paste the code text below (do not replace the code with pictures)
< template >

<image :src="val.primary_pic_url" :ref=""limg"+i" @load="leftimg(i,$event)" class="img" ></template>

< / html >
< script >
leftimg (iMagne event) {

      var that=this;
      const view = that.$refs["limg"+i];
      if(view[0].ref == event.target.ref){
        if(WXEnvironment.platform != "Web"){
          // that.msg=view;
          // this.msg1=event;
          // 365px
          var rqwidth=365;
          var width=event.size.naturalWidth,height=event.size.naturalHeight;
          var ratio = rqwidth/width;
          // that.msg=ratio;
          width = ratio*width;
          height = ratio*height;
          this.testh=height;
          this.testw=width;
          animation.transition(view,{
            styles:{
              width: width+"px",
              height: height+"px"
            },
            duration: 0,
            timingFunction: "ease",
            delay: 0,
            needLayout:true
          }, function(){})


        }
      }
    },

< / script >

what result do you expect? What is the error message actually seen?

Jul.07,2022

leftimg (iMagazine event) {

      var that=this;
      const view = that.$refs['limg'+i];
      if(view[0].ref == event.target.ref){
        if(WXEnvironment.platform != 'Web'){
          that.msg=view;
          // this.msg1=event;
          // 365px
          var rqwidth = 365;
          var width = event.size.naturalWidth;
          var height = event.size.naturalHeight;
          var ratio = rqwidth/width;
          // that.msg=ratio;
          width = ratio*width;
          height = ratio*height;
          this.testh = height;
          this.testw = width;
          animation.transition(view[0],{
            styles:{
              width: width+'px',
              height: height+'px'
            },
            duration: 0,
            // timingFunction: 'ease',
            delay: 0,
            needLayout:true
          }, function(){var n=that.n;nPP;that.n=n})


        }
      }
    },
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b9cec3-2f35a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b9cec3-2f35a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?