ios – Cordova digicam plugin. Incorrect image measurement


I attempt to get image from photograph library this fashion:

navigator.digicam.getPicture(onSuccess, onFail,
{
    destinationType: Digital camera.DestinationType.FILE_URI,
    sourceType: Digital camera.PictureSourceType.PHOTOLIBRARY,
    encodingType: Digital camera.EncodingType.JPEG,
    high quality: 100,
});

My objectives is to get jpeg formatted picture:

  1. Png and Heic picture needs to be transformed to jpeg
  2. Jpeg picture needs to be the identical as unique one

I’ve downside with the second case. Once I select jpg picture from photograph library it is measurement grows in 2.6 instances. Picture which measurement is 100kb turns into ~260kb.
In fact I can use Digital camera.DestinationType.NATIVE_URI however on this case I confronted an issue with changing Heic photographs.

Any ideas?

Thanks

Leave a Reply