-
Notifications
You must be signed in to change notification settings - Fork 2
/
exif_destroyer.bat
50 lines (50 loc) · 1.87 KB
/
exif_destroyer.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
REM Name :
REM EXIF Destroyer
REM Author :
REM ▄▄▄▄▄▄▄ ▄ ▄▄ ▄▄▄▄▄▄▄
REM █ ▄▄▄ █ ██ ▀▄ █ ▄▄▄ █
REM █ ███ █ ▄▀ ▀▄ █ ███ █
REM █▄▄▄▄▄█ █ ▄▀█ █▄▄▄▄▄█
REM ▄▄ ▄ ▄▄▀██▀▀ ▄▄▄ ▄▄
REM ▀█▄█▄▄▄█▀▀ ▄▄▀█ █▄▀█
REM █ █▀▄▄▄▀██▀▄ █▄▄█ ▀█
REM ▄▄▄▄▄▄▄ █▄█▀ ▄ ██ ▄█
REM █ ▄▄▄ █ █▀█▀ ▄▀▀ ▄▀
REM █ ███ █ ▀▄ ▄▀▀▄▄▀█▀█
REM █▄▄▄▄▄█ ███▀▄▀ ▀██ ▄
@ECHO off
REM Console title
TITLE EXIF Destroyer
REM Script folder path
SET directoryPath=%~dp0
REM Console height / width
MODE 65,30 | ECHO off
ECHO.
ECHO -------------------------------------------------------------
ECHO EXIF Destroyer :
ECHO -------------------------------------------------------------
ECHO.
REM First command line argument
SET argPath=%1
REM If first argument is a directory
IF EXIST %argPath%\* (
REM ECHO Directory : %argPath%
REM Iterate through JPG files in directory
FOR %%f IN (%argPath%\*.jpg %argPath%\*.jpeg) DO (
REM Print file name (with extension)
ECHO - %%~nf%%~xf
REM Remove EXIF metadata
"%directoryPath%ExifTool\exiftool.exe" -all= -q -charset filename=Latin -tagsfromfile @ -Orientation "%%f" -o "%%~df%%~pf%%~nf_noexif.jpg"
)
REM If first argument is a file
) ELSE (
REM ECHO File : %argPath%
FOR %%f IN (%argPath%) DO (
REM Print file name (with extension)
ECHO - %%~nf%%~xf
REM Remove EXIF metadata
"%directoryPath%ExifTool\exiftool.exe" -all= -q -charset filename=Latin -tagsfromfile @ -Orientation %argPath% -o "%%~df%%~pf%%~nf_noexif.jpg"
)
)
REM Wait 10 seconds, then exit script
TIMEOUT 10