Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ gify('out.mp4', 'out.gif', opts, function(err){
- `rate` frame rate [10]
- `start` start position in seconds or hh:mm:ss[.xxx] [0]
- `duration` length of video to convert in seconds or hh:mm:ss[.xxx] [auto]
- `ignore_loop` `0` for infinite loop or`-1` not looping [-1]

# License

Expand Down
5 changes: 4 additions & 1 deletion bin/gify
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ program
.usage('[options] infile outfile')
.option('-w, --width [width]', 'max width [500]')
.option('-h, --height [height]', 'max height [none]')
.option('-h, --height [height]', 'max height [none]')
.option('-d, --delay [delay]', 'delay between frames [auto]')
.option('-r, --rate [rate]', 'frame rate [10]')
.option('-s, --start [time]', 'start position in seconds or hh:mm:ss[.xxx] format [0]')
.option('-D, --duration [length]', 'length of video to convert in seconds or hh:mm:ss[.xxx] format [10]')
.option('-i, --ignore_loop [loop]', 'Loop' )
.parse(process.argv);

if (program.args.length < 2) {
Expand All @@ -35,7 +37,8 @@ var opts = {
delay: program.delay,
rate: program.rate,
start: program.start,
duration: program.duration
duration: program.duration,
ignore_loop: program.ignore_loop
};

gify(src, dst, opts, function(err) {
Expand Down