mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 09:50:09 +00:00
Added legacy EXIF updater.
Gets EXIF data out of .PSD files and adds it to previews. Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3a68c8cf69
commit
b190b5aa57
36
legacy/update-exif.sh
Executable file
36
legacy/update-exif.sh
Executable file
@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIR=`pwd`
|
||||
|
||||
|
||||
exifup(){
|
||||
PREVIEW_DIR=$1
|
||||
if [ -e "$PREVIEW_DIR" ] ; then
|
||||
echo doing: `pwd`
|
||||
exiv2 ex *.psd
|
||||
mv *.exv "$PREVIEW_DIR"
|
||||
cd "$PREVIEW_DIR"
|
||||
exiv2 -k in *.jpg
|
||||
rm -f *.exv
|
||||
cd ..
|
||||
fi
|
||||
true
|
||||
}
|
||||
|
||||
if [[ $1 != "" ]] ; then
|
||||
if ! [ -d "$1" ] ; then
|
||||
echo "\"$1\": is not a directory."
|
||||
exit 1
|
||||
fi
|
||||
cd "$1/DCIM/"
|
||||
exifup ./preview/
|
||||
exifup ./hi-res/
|
||||
cd "$DIR"
|
||||
else
|
||||
for d in */DCIM/ ; do
|
||||
cd "$d"
|
||||
exifup ./preview/
|
||||
exifup ./hi-res/
|
||||
cd "$DIR"
|
||||
done
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user