这是indexloc提供的服务,不要输入任何密码
Skip to content

termux-camera-photo: empty file #124

@sinus-x

Description

@sinus-x

Hi.
Straight to the problem: I have a script, that takes photo using both main and selfie camera. Selfie camera gives me output every time, but the main one almost never. When I execute termux-camera-photo x.jpg manually, I get desired JPEG - this does not happen when I run it via script. That way it only creates 0-byte file.

Android 7.0 aarch64, DOOGEE MIX, bash 4.4.12, termux 0.59

As you can see, there can be nothing wrong with the script:

cd $HOME/storage/dcim
termux-camera-photo 0.jpg
termux-camera-photo -c 1 1.jpg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions