diff --git a/src/tools/images/copy.bat b/src/tools/images/copy.bat new file mode 100644 index 000000000..b89a81fe0 --- /dev/null +++ b/src/tools/images/copy.bat @@ -0,0 +1,33 @@ +xcopy "01 Box Front" .. +xcopy "02 Box Back" .. +xcopy "03 Cartridge" .. +xcopy "04 Cartridge Text" .. +xcopy "05 Tape" .. +xcopy "06 Tape" .. +xcopy "07 Tape" .. +xcopy "08 End Label" .. +xcopy "09 Board" .. +xcopy "10 Board" .. +xcopy "11 Board" .. +xcopy "12 miscellaneous" .. +xcopy "13 miscellaneous" .. +xcopy "14 miscellaneous" .. +xcopy "15 miscellaneous" .. +xcopy "16 miscellaneous" .. +xcopy "17 miscellaneous" .. +xcopy "18 patches" .. +xcopy "19 patches" .. +xcopy "20 patches" .. +xcopy "21 patches" .. +xcopy "22 box front alternate" .. +xcopy "23 box front alternate" .. +xcopy "24 box back alternate" .. +xcopy "25 cartridge alternate" .. +xcopy "26 cartridge alternate" .. +xcopy "27 cartridge text alternate" .. +xcopy "28 cartridge label alternate" .. +xcopy "29 miscellaneous" .. +xcopy "30 miscellaneous" .. +xcopy "31 miscellaneous" .. +xcopy "32 miscellaneous" .. +xcopy "33 miscellaneous" .. \ No newline at end of file diff --git a/src/tools/images/exif.bat b/src/tools/images/exif.bat new file mode 100644 index 000000000..ef8f9fb5d --- /dev/null +++ b/src/tools/images/exif.bat @@ -0,0 +1,36 @@ +exiftool.exe -P -ImageDescription="Box Front" "01 Box Front/*.jpg" +exiftool.exe -P -ImageDescription="Box Back" "02 Box Back/*.jpg" +exiftool.exe -P -ImageDescription="Cartridge" "03 Cartridge/*.jpg" +exiftool.exe -P -ImageDescription="Cartridge" "04 Cartridge Text/*.jpg" +exiftool.exe -P -ImageDescription="Tape" "05 Tape/*.jpg" +exiftool.exe -P -ImageDescription="Tape" "06 Tape/*.jpg" +exiftool.exe -P -ImageDescription="Tape" "07 Tape/*.jpg" +exiftool.exe -P -ImageDescription="End Label" "08 End Label/*.jpg" +exiftool.exe -P -ImageDescription="Board" "09 Board/*.jpg" +exiftool.exe -P -ImageDescription="Board" "10 Board/*.jpg" +exiftool.exe -P -ImageDescription="Board" "11 Board/*.jpg" +exiftool.exe -P -ImageDescription="Miscellaneous" "12 miscellaneous/*.jpg" +exiftool.exe -P -ImageDescription="Miscellaneous" "13 miscellaneous/*.jpg" +exiftool.exe -P -ImageDescription="Miscellaneous" "14 miscellaneous/*.jpg" +exiftool.exe -P -ImageDescription="Miscellaneous" "15 miscellaneous/*.jpg" +exiftool.exe -P -ImageDescription="Miscellaneous" "16 miscellaneous/*.jpg" +exiftool.exe -P -ImageDescription="Miscellaneous" "17 miscellaneous/*.jpg" +exiftool.exe -P -ImageDescription="Patch" "18 patches/*.jpg" +exiftool.exe -P -ImageDescription="Patch" "19 patches/*.jpg" +exiftool.exe -P -ImageDescription="Patch" "20 patches/*.jpg" +exiftool.exe -P -ImageDescription="Patch" "21 patches/*.jpg" + +exiftool.exe -P -ImageDescription="Box Front" "22 box front alternate/*.jpg" +exiftool.exe -P -ImageDescription="Box Front" "23 box front alternate/*.jpg" +exiftool.exe -P -ImageDescription="Box Back" "24 box back alternate/*.jpg" +exiftool.exe -P -ImageDescription="Cartridge" "25 cartridge alternate/*.jpg" +exiftool.exe -P -ImageDescription="Cartridge" "26 cartridge alternate/*.jpg" +exiftool.exe -P -ImageDescription="Cartridge" "27 cartridge text alternate/*.jpg" +exiftool.exe -P -ImageDescription="Cartridge" "28 cartridge label alternate/*.jpg" +exiftool.exe -P -ImageDescription="Miscellaneous" "29 miscellaneous/*.jpg" +exiftool.exe -P -ImageDescription="Miscellaneous" "30 miscellaneous/*.jpg" +exiftool.exe -P -ImageDescription="Miscellaneous" "31 miscellaneous/*.jpg" +exiftool.exe -P -ImageDescription="Miscellaneous" "32 miscellaneous/*.jpg" +exiftool.exe -P -ImageDescription="Miscellaneous" "33 miscellaneous/*.jpg" + +del /s *.jpg_original diff --git a/src/tools/images/readme.txt b/src/tools/images/readme.txt new file mode 100644 index 000000000..ab1354ead --- /dev/null +++ b/src/tools/images/readme.txt @@ -0,0 +1,14 @@ +Some batch files (Windows only), which rename and tag the images provided by Augusto (see #916). + +Usage: +1. Download exiftool +2. Unpack Augusto's image files into image folder +3. Put exiftool.exe and batch files into image folder +4. Run exif.bat +5. Run rename.bat +6. Run copy.bat +7. Cleanup (e.g. delete subdirectories) +8. Add screenshots from stella-snapshots.zip + +Result: All images files are tagged and ordered for display in Stella's launcher. + diff --git a/src/tools/images/rename.bat b/src/tools/images/rename.bat new file mode 100644 index 000000000..bb73a7311 --- /dev/null +++ b/src/tools/images/rename.bat @@ -0,0 +1,39 @@ +forfiles /P "01 Box Front" /M *.jpg /C "cmd /c rename @file @fname_100.jpg" +forfiles /P "02 Box Back" /M *.jpg /C "cmd /c rename @file @fname_200.jpg" +forfiles /P "03 Cartridge" /M *.jpg /C "cmd /c rename @file @fname_300.jpg" +forfiles /P "04 Cartridge Text" /M *.jpg /C "cmd /c rename @file @fname_301.jpg" +forfiles /P "05 Tape" /M *.jpg /C "cmd /c rename @file @fname_600.jpg" +forfiles /P "06 Tape" /M *.jpg /C "cmd /c rename @file @fname_601.jpg" +forfiles /P "07 Tape" /M *.jpg /C "cmd /c rename @file @fname_602.jpg" +forfiles /P "08 End Label" /M *.jpg /C "cmd /c rename @file @fname_400.jpg" +forfiles /P "09 Board" /M *.jpg /C "cmd /c rename @file @fname_900.jpg" +forfiles /P "10 Board" /M *.jpg /C "cmd /c rename @file @fname_901.jpg" +forfiles /P "11 Board" /M *.jpg /C "cmd /c rename @file @fname_902.jpg" +forfiles /P "12 miscellaneous" /M *.jpg /C "cmd /c rename @file @fname_700.jpg" +forfiles /P "13 miscellaneous" /M *.jpg /C "cmd /c rename @file @fname_701.jpg" +forfiles /P "14 miscellaneous" /M *.jpg /C "cmd /c rename @file @fname_702.jpg" +forfiles /P "15 miscellaneous" /M *.jpg /C "cmd /c rename @file @fname_703.jpg" +forfiles /P "16 miscellaneous" /M *.jpg /C "cmd /c rename @file @fname_704.jpg" +forfiles /P "17 miscellaneous" /M *.jpg /C "cmd /c rename @file @fname_705.jpg" +forfiles /P "18 patches" /M *.jpg /C "cmd /c rename @file @fname_800.jpg" +forfiles /P "19 patches" /M *.jpg /C "cmd /c rename @file @fname_801.jpg" +forfiles /P "20 patches" /M *.jpg /C "cmd /c rename @file @fname_802.jpg" +forfiles /P "21 patches" /M *.jpg /C "cmd /c rename @file @fname_803.jpg" + +forfiles /P "22 box front alternate" /M *.jpg /C "cmd /c rename @file @fname_101.jpg" +forfiles /P "23 box front alternate" /M *.jpg /C "cmd /c rename @file @fname_102.jpg" +forfiles /P "24 box back alternate" /M *.jpg /C "cmd /c rename @file @fname_201.jpg" +forfiles /P "25 cartridge alternate" /M *.jpg /C "cmd /c rename @file @fname_302.jpg" +forfiles /P "26 cartridge alternate" /M *.jpg /C "cmd /c rename @file @fname_303.jpg" +forfiles /P "27 cartridge text alternate" /M *.jpg /C "cmd /c rename @file @fname_304.jpg" +forfiles /P "28 cartridge label alternate" /M *.jpg /C "cmd /c rename @file @fname_305.jpg" +forfiles /P "29 miscellaneous" /M *.jpg /C "cmd /c rename @file @fname_706.jpg" +forfiles /P "30 miscellaneous" /M *.jpg /C "cmd /c rename @file @fname_707.jpg" +forfiles /P "31 miscellaneous" /M *.jpg /C "cmd /c rename @file @fname_708.jpg" +forfiles /P "32 miscellaneous" /M *.jpg /C "cmd /c rename @file @fname_709.jpg" +forfiles /P "33 miscellaneous" /M *.jpg /C "cmd /c rename @file @fname_710.jpg" + + + + +