Changed zmu -i option to write to monitor named image file.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@119 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
9270f7fcf9
commit
8e9a8b421f
|
@ -1570,7 +1570,10 @@ int Monitor::GetImage( int index ) const
|
|||
}
|
||||
Snapshot *snap = &image_buffer[index];
|
||||
Image *image = snap->image;
|
||||
image->WriteJpeg( "zmu.jpg" );
|
||||
|
||||
char filename[64];
|
||||
sprintf( filename, "%s.jpg", name );
|
||||
image->WriteJpeg( filename );
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ void Usage()
|
|||
fprintf( stderr, "Options:\n" );
|
||||
fprintf( stderr, " -m, --monitor <monitor_id> : Specify which monitor to address, default 0 if absent\n" );
|
||||
fprintf( stderr, " -s, --state : Output the current monitor state, 0 = idle, 1 = alarm, 2 = alert\n" );
|
||||
fprintf( stderr, " -i, --image [image_index] : Write captured image to disk as zmu.jpg, last image captured or \n" );
|
||||
fprintf( stderr, " -i, --image [image_index] : Write captured image to disk as <monitor_name>.jpg, last image captured\n" );
|
||||
fprintf( stderr, " or specified ring buffer index if given.\n" );
|
||||
fprintf( stderr, " -t, --timestamp [image_index] : Output captured image timestamp, last image captured or specified\n" );
|
||||
fprintf( stderr, " ring buffer index if given\n" );
|
||||
|
|
Loading…
Reference in New Issue