added some preliminary windows scripts...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-07-16 02:59:12 +04:00
parent 1f485cfb25
commit b574cac381
2 changed files with 26 additions and 0 deletions

1
scripts/cleannwcache.bat Executable file
View File

@ -0,0 +1 @@
del /f "%USERPROFILE%/Local Settings/Application Data/ImageGrid.Viewer"

25
scripts/process-archive.bat Executable file
View File

@ -0,0 +1,25 @@
@echo off
rem this is just a stub...
rem
set ARCHIVE_ROOT=
set METADATA_DIR=metadata
set RAW_PREVIEW_DIR=hi-res (RAW)
set PROCESSED_PREVIEW_DIR=preview
set PROCESSED_PREVIEW_NAME=%%-:1d/%PROCESSED_PREVIEW_DIR%/%%f.jpg
set PREVIEW_NAME=%%-:1d/%RAW_PREVIEW_DIR%/%%f.jpg
set JSON_NAME=%%-:1d/%METADATA_DIR%/%%f.json
exiftool -if $jpgfromraw -b -jpgfromraw -w "%PREVIEW_NAME%" ^
-execute -if $previewimage -b -previewimage -w "%PREVIEW_NAME%" ^
-execute -FileModifyDate^<DateTimeOriginal -tagsfromfile @ ^
-srcfile "%PREVIEW_NAME%" -overwrite_original ^
-execute -j -w "%JSON_NAME%" ^
-common_args --ext jpg -r "./%ARCHIVE_ROOT%" -progress
rem vim:set nowrap :