Merging batch images side by side
Posted: 2013-09-09T12:26:22-07:00
hi all
I'm trying to merge a set of images from two ip cameras, to get as a result sort of a panorama, and merge one of this is really easy. Then I tried to merge a batch of them, to execute the script once a day and thats where i'm getting stuck at, i'm gonna paste here the code i have so far.
and the thing i've tried to do so far was put an asterisk on the file name, like the example below, and the result was that it did try to merge all the images at once.
and the other alternative i did was a loop, but the .bat didn't even executed
I'm trying to merge a set of images from two ip cameras, to get as a result sort of a panorama, and merge one of this is really easy. Then I tried to merge a batch of them, to execute the script once a day and thats where i'm getting stuck at, i'm gonna paste here the code i have so far.
Code: Select all
REM @ECHO OFF
REM @ECHO OFF
set DATA=%DATE%
set DAY=%DATA:~0,2%
set MONTH=%DATA:~3,2%
set YEAR=%DATA:~6,4%
set FOLDERNAME=%YEAR%%MONTH%%DAY%
set FILENAME=Hangar_1-%YEAR%-%MONTH%-%DAY%*.jpg
"C:\Program Files (x86)\ImageMagick-6.8.6-Q16\convert.exe" "C:\Users\modClima\Desktop\teste video\Camera Hangar ModClima 1\grabs\Hangar_1-2013-09-09_11-32-14_418.jpg" "C:\Users\modClima\Desktop\teste video\Camera Hangar ModClima 2\grabs\Hangar_2-2013-09-09_11-32-15_458.jpg" +append "C:\Users\modClima\Desktop\resultado teste\%FOLDERNAME%\teste1.jpg"
EXIT
Code: Select all
"C:\Program Files (x86)\ImageMagick-6.8.6-Q16\convert.exe" "C:\Users\modClima\Desktop\teste video\Camera Hangar ModClima 1\grabs\Hangar_1-2013-09-09*.jpg" "C:\Users\modClima\Desktop\teste video\Camera Hangar ModClima 2\grabs\Hangar_2-2013-09-09*.jpg" +append "C:\Users\modClima\Desktop\resultado teste\%FOLDERNAME%\teste1.jpg"
Code: Select all
for file in *.jpg; "C:\Program Files (x86)\ImageMagick-6.8.6-Q16\convert.exe" "C:\Users\modClima\Desktop\teste video\Camera Hangar ModClima 1\grabs\Hangar_1-2013-09-09*.jpg" "C:\Users\modClima\Desktop\teste video\Camera Hangar ModClima 2\grabs\Hangar_2-2013-09-09*.jpg" +append "C:\Users\modClima\Desktop\resultado teste\%FOLDERNAME%\teste1.jpg"