1
votes

The app I am building is to take a member picture and save to amazon s3 bucket. Again thanks Codename one team( especially Shai) for helping me out through the process.

I am now facing some performance issue as in I am using iPhone 6s Plus. When I take the picture and reload the label with the image, it takes really long time to load.

Is there any way to reduce the picture size and resolution before saving to amazon s3 bucket? Or what would be the best practice or optimized way of achieving this? Please suggest.

Thanks,

1

1 Answers

0
votes

Yes.

You can use the version of capture that accepts width/height notice that -1 will keep the aspect ratio for that axis.

You can also use ImageIO to resize an image to any arbitrary size without opening the file.