Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: accepts path for timelapse mode #37

Closed
wants to merge 1 commit into from

Conversation

zpg6
Copy link

@zpg6 zpg6 commented Feb 25, 2022

Before

If you are using a combination of the single-photo and timelapse options, you may be looking to put the photos in folders.

You can already do this in single-photo mode (when you don't supply -t x.xx) by supplying path and filename:

imagesnap "photos/snapshot.jpg"

After

This allows you to supply the path in timelapse mode as well (when you do supply -t x.xx).

(Assuming dir "photos" already exists):

imagesnap -t 2.5 "photos/"

Which outputs:

Capturing image from device "FaceTime HD Camera (Built-in)"...
photos/snapshot-00000.jpg
photos/snapshot-00001.jpg
photos/snapshot-00002.jpg
photos/snapshot-00003.jpg
photos/snapshot-00004.jpg

Running again without deleting those photos continues the count as expected:

Capturing image from device "FaceTime HD Camera (Built-in)"...
photos/snapshot-00005.jpg
photos/snapshot-00006.jpg
photos/snapshot-00007.jpg

@rharder
Copy link
Owner

rharder commented Jan 5, 2023

This is a great idea! Another pull request has made this pull request not be "automatic," but let me see about adding the intent to the new version. Great idea. Thanks.

@rharder
Copy link
Owner

rharder commented Feb 24, 2023

Added this feature! It's in v0.2.16.

@rharder rharder closed this Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants