I wanted to --output - to capture a photo without saving it to disk. The result buffer was too small and the default utf8-encoding (instead of binary) was wrong, so I had to add options to Execute.run.
While being at it, I also added my snapDataUrl() method which will conveniently return a photo as data:image/jpg;base64,... URL.
I wanted to
--output -
to capture a photo without saving it to disk. The result buffer was too small and the default utf8-encoding (instead of binary) was wrong, so I had to add options to Execute.run.While being at it, I also added my snapDataUrl() method which will conveniently return a photo as
data:image/jpg;base64,...
URL.