Skip to content

Commit

Permalink
timelapse directory added
Browse files Browse the repository at this point in the history
  • Loading branch information
rharder committed Feb 23, 2023
1 parent 0b2f007 commit 63373f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ImageSnap.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#import "ImageSnap.h"

NSString *const VERSION = @"0.2.15";
NSString *const VERSION = @"0.2.16";

@interface ImageSnap()

Expand Down Expand Up @@ -149,6 +149,13 @@ - (void)saveSingleSnapshotFrom:(AVCaptureDevice *)device
if(path == nil){
path = @"./";
}
path = [path stringByStandardizingPath];
[fileManager createDirectoryAtPath:path
withIntermediateDirectories:true
attributes:nil
error:nil];
console("Saving images to %s\n", [path UTF8String]);

for (unsigned long long seq = 1; seq < ULLONG_MAX ; seq++) { // 64 bit counter - a lot of pictures

if (seq > timelapseCount) {
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Only JPEG output is supported.

## Changes

* v0.2.16 - Added ability to specify directory where timelapse images will be saved.
* v0.2.15 - Added `-n` flag to limit the number of timelapse pictures. Also changed first timelapse image numbering to start at one instead of zero.
* v0.2.14 - Bump to fix distribution problems only
* v0.2.13 - Default warmup period is now three seconds. Set ```-w 0``` if you want no delay.
Expand Down

0 comments on commit 63373f9

Please sign in to comment.