Hey guys,
Any suggestions on how to speed up the Image File Transfer process to display an image to the watch? Here is what I have on my companion app code:
function compressAndTransferImage(imageToTransfer) {
Image.from(JSON.parse(imageToTransfer).imageUri).then(image => image.export("image/jpeg")).then(buffer => outbox.enqueue(`${Date.now()}.jpg`, buffer));
}
I thought about reducing the quality as shown in the sample code, however I feel it make the image look not that good on the watch, but if that helps to make it slightly faster then I will do it.
Answered! Go to the Best Answer.
Best AnswerReducing quality is your only option, I think (assuming you're not sending larger images than needed). The watch only displays 16-bit colour and has fairly high DPI, so compression artefacts aren't very obvious.
Reducing quality is your only option, I think (assuming you're not sending larger images than needed). The watch only displays 16-bit colour and has fairly high DPI, so compression artefacts aren't very obvious.
Thanks Gondwana, wish it was faster... hopefully we get improvements for that on the next SDK.
Best AnswerHi Gondwana, I noticed that an ImagePicker folder is created when using the ImagePicker on the companion App, at least I can see that on Android, is there a way to delete that folder after selecting an image? I know it is an empty folder, but still I don't want to generate "trash" to the user's phone.
Best Answer