Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70811

Capacitor camera: reducing image size before uploading

$
0
0

Hi there,

I am getting images too large in size despite having adjusted quality, width and height

const image = await Camera.getPhoto({
  quality: 20,
  width : 200,
  height : 200,
  allowEditing: false,
  source: CameraSource.Camera,
  resultType: CameraResultType.Base64
  });

After that I take the base64 and upload it to the server.

However I am getting images in the 2-5MB range of size (Android). Is there any way of reducing/compressing the size further?

Already checked [this]() and other similar postings but they seem to adjust the size by reducing the quality param and the width and height (which are already low in my case)

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70811

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>