mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-30 18:12:28 +00:00
49_IPCAM.pm: change file extension for JPEG mimetypes to '.jpg'
git-svn-id: https://svn.fhem.de/fhem/trunk@1999 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c3f2d30e33
commit
29162f132e
@ -214,6 +214,7 @@ IPCAM_getSnapshot($) {
|
|||||||
readingsBeginUpdate($hash);
|
readingsBeginUpdate($hash);
|
||||||
if($seq < $seqImages) {
|
if($seq < $seqImages) {
|
||||||
$seq++;
|
$seq++;
|
||||||
|
$imageFormat = "JPG" if($imageFormat eq "JPEG");
|
||||||
$lastSnapshot = $name."_snapshot.".lc($imageFormat);
|
$lastSnapshot = $name."_snapshot.".lc($imageFormat);
|
||||||
$imageFile = $name."_snapshot".$seq.".".lc($imageFormat);
|
$imageFile = $name."_snapshot".$seq.".".lc($imageFormat);
|
||||||
if(!open(FH, ">$storage/$lastSnapshot")) {
|
if(!open(FH, ">$storage/$lastSnapshot")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user