14 lines
294 B
Bash
Executable File
14 lines
294 B
Bash
Executable File
#!/bin/bash
|
|
|
|
mkdir -p /tmp/dds > /dev/null
|
|
|
|
for file in "$@"
|
|
do
|
|
echo "$file"
|
|
dirname=$(dirname "$file")
|
|
basename=$(basename "$file")
|
|
extname="${file#${file%.*}}"
|
|
filename=$(basename "$basename" "$extname")
|
|
|
|
convert -flip "$file" "$dirname/$filename.png" && rm $file
|
|
done |