darwin-camera icon indicating copy to clipboard operation
darwin-camera copied to clipboard

filePath and in-memory use instead of local FS

Open zstima opened this issue 4 years ago • 2 comments

could u push something else in filePath parameter of the DarwinWidget so it doesnt save it in a file but instead gives u a object in the memory which contains the image ?

zstima avatar Dec 04 '20 07:12 zstima

This would be really nice.

cagbal avatar Jan 05 '21 19:01 cagbal

Hey @zstima Using in-memory image object can be tricky given images can have a large size. Usually it's easy to push the captured image on disk which can be later retrieved and reduced in size for preview.

Regarding the filePath parameter, it can be a local file path or something outside the app scope as well. (Report a bug here in case it's not happening).

Nonetheless, If you find better implementations of handling images in-memory, do share & feel free to raise a PR.

ishaan1995 avatar Feb 18 '21 21:02 ishaan1995