On IOS, Image-Source expects a number between 0.0 to 1.0 to specify the image quality.
On Android, Image-Source expects a number netween 0 and 100.
It brings up the situation developers have to use a platform-check if the want to get a JPG with 80% quality:
let quality = platformModule.isAndroid ? 80 : 0.8;
return image.toBase64String("jpeg", quality);
I'd suggest to use one scale for both platforms to have an more consistent API.
What do you think?
Reactions are currently unavailable
On IOS, Image-Source expects a number between 0.0 to 1.0 to specify the image quality.
On Android, Image-Source expects a number netween 0 and 100.
It brings up the situation developers have to use a platform-check if the want to get a JPG with 80% quality:
let quality = platformModule.isAndroid ? 80 : 0.8; return image.toBase64String("jpeg", quality);I'd suggest to use one scale for both platforms to have an more consistent API.
What do you think?