Toastie 1 year ago
parent
commit
b465bfbcff
1 changed files with 21 additions and 0 deletions
  1. 21 0
      image-processing/get-properties/README.md

+ 21 - 0
image-processing/get-properties/README.md

@@ -0,0 +1,21 @@
+```
+# Get filelist (Windows command prompt)
+dir *.tif? /s /b > filelist.txt
+
+# Split file list in packages á 500 files (bash)
+split -d -l 500 filelist.txt filelist-
+
+# Get file info in ini format using IrfanView
+FOR %G in (filelist-*.txt) do "C:\Program Files (x86)\IView\i_view32.exe" /filelist=%G /info=info-%G
+
+# Concatenate result files (bash)
+cat info-*.txt >> info.txt
+
+# Create csv from ini (python)
+python3 ini2csv.py -i $file -o $file".csv"
+
+# Or convert individual files
+for file in info-*.txt
+  do python3 ini2csv.py -i $file -o $file".csv"
+done
+````