Insta360Develop / Insta360_OSC

36 stars 4 forks source link

Thumbnail support #10

Open gshcherb opened 3 years ago

gshcherb commented 3 years ago

Business requirement we have is to be able to pull down scaled down thumbnail for the image that camera holds, so that we can render previews for multiple images quickly without pulling the whole image down.

Since ondevice stitching is available now on Insta One X and Insta One X2 and we can assume image is ready and stored on the device, can we add the support for thumbnails?

Proposal is: when client is trying to pull URL which represents an image add optional ?thumb=true parameter to the query which triggers scaling down the image for some specific size, like 1024x512. Or add specific ?width=... parameter and calculate height according to aspect ratio on the camera before scaling it down.

qizhiyu2018 commented 3 years ago

You can use SDK to do this.

gshcherb commented 3 years ago

Can you please clarify how we can use SDK for this without pulling full res image from camera?

gshcherb commented 3 years ago

Can you please provide a code sample for this?

qizhiyu2018 commented 3 years ago

Can you please provide a code sample for this?

You can ask here https://github.com/Insta360Develop/CameraSDK-Android/issues