Image size is reducing in mobile when i upload a image using camara.getPhoto in capacitor

the file size is reducing when i upload a image from this

const image1 = await Camera.getPhoto({
quality: 98,
allowEditing: false,
resultType: CameraResultType.Uri,
source: CameraSource.Photos
});

it is working in web but not in mobile… in mobile file size is decresing…

any answers?

I have the same problem - if I take a photo via browser on mobile, the result is narrower than the original photo. I tried the following code:

const photo = await Camera.getPhoto({
      resultType: CameraResultType.Base64,
      source: CameraSource.Camera,
      quality: 100,
      width: window.innerWidth * window.devicePixelRatio,
      height: window.innerHeight * window.devicePixelRatio,
    });

but no matter what I put as width or height the result is the same. I use capacitor v5.0.4