Initial commit
@@ -0,0 +1 @@
|
||||
credentials
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
IN="/home/chris/pendel/out"
|
||||
OUT="/home/chris/lampstack-7.1.12-0/apps/wordpress/htdocs/wp-content/uploads/pendel/ffm"
|
||||
echo Replace $OUT with $IN
|
||||
rm -r $OUT/*
|
||||
cp -v $IN/* $OUT/
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
#!/bin/bash
|
||||
IN="/home/chris/pendel/in"
|
||||
OUT="/home/chris/pendel/out"
|
||||
|
||||
# case in-sensitive matching
|
||||
shopt -s nocaseglob
|
||||
|
||||
if [ -z "$1" ]
|
||||
then echo Missing pendel nr or 'all'. E. g. Call 'import 023'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Renew complete out
|
||||
if [ "$1" = "all" ]
|
||||
then
|
||||
echo Rebuild $OUT...
|
||||
|
||||
rm $OUT -r
|
||||
mkdir $OUT
|
||||
|
||||
echo Copy images...
|
||||
find $IN -regex $IN/[0-9][0-9][0-9]/[0-9].*\.jpg | xargs -L1 -I{} cp "{}" $OUT/
|
||||
|
||||
echo Rezise images to 1800x1200...
|
||||
find $OUT -regex $OUT/[0-9].*\.jpg -printf "%f\n\r" | xargs -L1 -I{} convert -resize 1800x1200 -quality 70% $OUT/"{}" $OUT/"{}"
|
||||
|
||||
echo Copy tile images...
|
||||
find $IN -regex $IN/[0-9][0-9][0-9]/tile_[0-9].*\.jpg | xargs -L1 -I{} cp "{}" $OUT/
|
||||
|
||||
echo Create gps.csv...
|
||||
find $OUT -regex $OUT/[0-9].*\.jpg | sort | xargs exiftool -filename -gpsposition -title -description -n -s -t -S -q -f > $OUT/gps.csv
|
||||
|
||||
echo Change file permissions to rw-rw-r--
|
||||
chmod 664 $OUT/*
|
||||
|
||||
else
|
||||
echo Add "$1" to $OUT
|
||||
|
||||
if [ ! -e "$OUT" ]
|
||||
then echo Create "$OUT"
|
||||
mkdir "$OUT"
|
||||
fi
|
||||
|
||||
for file in $IN/$1/*; do
|
||||
fname=$(basename $file)
|
||||
|
||||
pat="^[0-9].*\.jpg"
|
||||
if [[ $fname =~ $pat ]];
|
||||
then
|
||||
echo Copy, convert and chmod $fname...
|
||||
cp $file "$OUT"
|
||||
convert -resize 1800x1200 -quality 70% $OUT/$fname $OUT/$fname
|
||||
chmod 664 $OUT/$fname
|
||||
else
|
||||
|
||||
pat="^tile_[0-9].*\.jpg"
|
||||
if [[ $fname =~ $pat ]];
|
||||
then
|
||||
echo Copy and chmod $fname...
|
||||
cp $file "$OUT"
|
||||
chmod 664 $OUT/$fname
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
echo Create and chmod gps.csv...
|
||||
find $OUT -regex $OUT/[0-9].*\.jpg | sort | xargs exiftool -filename -gpsposition -title -description -n -s -t -S -q -f > $OUT/gps.csv
|
||||
|
||||
chmod 664 $OUT/gps.csv
|
||||
|
||||
fi
|
||||
|
||||
echo Done.
|
||||
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
# Upload files to host
|
||||
# There must be a file 'credentials' with two line:
|
||||
# host-username yourusername
|
||||
# host-password yourtopsecretpassword
|
||||
IN="/home/chris/pendel/in/$1"
|
||||
OUT="/home/chris/pendel/out"
|
||||
|
||||
# case in-sensitive matching
|
||||
shopt -s nocaseglob
|
||||
|
||||
if [ -z "$1" ]
|
||||
then echo Missing pendel nr.
|
||||
exit 0
|
||||
else
|
||||
echo Exporting pendel "$1" to earls5...
|
||||
fi
|
||||
|
||||
# We need the image files from the particular spot...
|
||||
for file in $IN/*.jpg; do
|
||||
files[i]=$OUT/$(basename "$file")
|
||||
(( ++i ))
|
||||
done
|
||||
|
||||
# ...and the gps.csv
|
||||
files[i]="$OUT/gps.csv"
|
||||
|
||||
|
||||
export SSHPASS=$(grep -Po "(?<=^host-password ).*" credentials)
|
||||
username=$(grep -Po "(?<=^host-username ).*" credentials)
|
||||
|
||||
sshpass -v -e sftp -oBatchMode=no -b - $username@olbers.uberspace.de << !
|
||||
cd html/pendel/wp-content/uploads/pendel/ffm
|
||||
put "${files[0]}"
|
||||
put "${files[1]}"
|
||||
put "${files[2]}"
|
||||
bye
|
||||
!
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
#!/bin/bash
|
||||
SRC="/home/chris/photo/02_Progress/pendel"
|
||||
DST="/home/chris/pendel/in"
|
||||
|
||||
# case in-sensitive matching
|
||||
|
||||
shopt -s nocaseglob
|
||||
if [ -z "$1" ]
|
||||
then echo Missing pendel nr. E. g. Call 'import 023'
|
||||
exit 0
|
||||
else
|
||||
echo Importing pendel "$1"...
|
||||
fi
|
||||
if [ ! -e $DST/$1 ]
|
||||
then echo Create $DST/$1
|
||||
mkdir $DST/$1
|
||||
fi
|
||||
|
||||
# Copy images from final
|
||||
i=0
|
||||
for file in $SRC/$1/final/*.jpg; do
|
||||
imgs[i]="$file"
|
||||
(( ++i ))
|
||||
done
|
||||
for file in "${imgs[@]}"; do
|
||||
cp "$file" "$DST/$1"
|
||||
done
|
||||
|
||||
# Copy tcx or gpx file from work directory
|
||||
for file in $SRC/$1/work/*.*x; do
|
||||
tcxs[i]="$file"
|
||||
(( ++i ))
|
||||
done
|
||||
for file in "${tcxs[@]}"; do
|
||||
cp "$file" "$DST/$1"
|
||||
done
|
||||
|
||||
# Copy tile file from work directory
|
||||
for file in $SRC/$1/work/tile_*.jpg; do
|
||||
tiles[i]="$file"
|
||||
(( ++i ))
|
||||
done
|
||||
for file in "${tiles[@]}"; do
|
||||
cp "$file" "$DST/$1"
|
||||
done
|
||||
|
||||
# List dir
|
||||
echo Imported into "$DST/$1":
|
||||
ls "$DST/$1"
|
||||
|
After Width: | Height: | Size: 5.3 MiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 3.2 MiB |
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2">
|
||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
<rdf:Description rdf:about=""
|
||||
xmlns:exif="http://ns.adobe.com/exif/1.0/"
|
||||
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
|
||||
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:darktable="http://darktable.sf.net/"
|
||||
exif:GPSAltitude="1030/10"
|
||||
exif:GPSAltitudeRef="0"
|
||||
exif:GPSLatitude="50,8.272700N"
|
||||
exif:GPSLongitude="8,59.512470E"
|
||||
xmp:Rating="1"
|
||||
xmpMM:DerivedFrom="20170329-165427-DSCF4795.jpg"
|
||||
darktable:xmp_version="2"
|
||||
darktable:raw_params="0"
|
||||
darktable:auto_presets_applied="1"
|
||||
darktable:history_end="1">
|
||||
<dc:title>
|
||||
<rdf:Alt>
|
||||
<rdf:li xml:lang="x-default">Pendel II</rdf:li>
|
||||
</rdf:Alt>
|
||||
</dc:title>
|
||||
<dc:description>
|
||||
<rdf:Alt>
|
||||
<rdf:li xml:lang="x-default">Under Covor</rdf:li>
|
||||
</rdf:Alt>
|
||||
</dc:description>
|
||||
<darktable:mask_id>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_id>
|
||||
<darktable:mask_type>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_type>
|
||||
<darktable:mask_name>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_name>
|
||||
<darktable:mask_version>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_version>
|
||||
<darktable:mask>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask>
|
||||
<darktable:mask_nb>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_nb>
|
||||
<darktable:mask_src>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_src>
|
||||
<darktable:history>
|
||||
<rdf:Seq>
|
||||
<rdf:li
|
||||
darktable:operation="flip"
|
||||
darktable:enabled="1"
|
||||
darktable:modversion="2"
|
||||
darktable:params="ffffffff"
|
||||
darktable:multi_name=""
|
||||
darktable:multi_priority="0"
|
||||
darktable:blendop_version="7"
|
||||
darktable:blendop_params="gz12eJxjYGBgkGAAgRNODESDBnsIHll8ANNSGQM="/>
|
||||
</rdf:Seq>
|
||||
</darktable:history>
|
||||
</rdf:Description>
|
||||
</rdf:RDF>
|
||||
</x:xmpmeta>
|
||||
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 4.7 MiB |
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2">
|
||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
<rdf:Description rdf:about=""
|
||||
xmlns:exif="http://ns.adobe.com/exif/1.0/"
|
||||
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
|
||||
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:darktable="http://darktable.sf.net/"
|
||||
exif:GPSAltitude="1130/10"
|
||||
exif:GPSAltitudeRef="0"
|
||||
exif:GPSLatitude="50,9.168850N"
|
||||
exif:GPSLongitude="9,2.212300E"
|
||||
xmp:Rating="1"
|
||||
xmpMM:DerivedFrom="20170403-163956-DSCF4838.jpg"
|
||||
darktable:xmp_version="2"
|
||||
darktable:raw_params="0"
|
||||
darktable:auto_presets_applied="1"
|
||||
darktable:history_end="1">
|
||||
<dc:title>
|
||||
<rdf:Alt>
|
||||
<rdf:li xml:lang="x-default">Pendel III</rdf:li>
|
||||
</rdf:Alt>
|
||||
</dc:title>
|
||||
<dc:description>
|
||||
<rdf:Alt>
|
||||
<rdf:li xml:lang="x-default">Trees in a Park</rdf:li>
|
||||
</rdf:Alt>
|
||||
</dc:description>
|
||||
<darktable:mask_id>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_id>
|
||||
<darktable:mask_type>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_type>
|
||||
<darktable:mask_name>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_name>
|
||||
<darktable:mask_version>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_version>
|
||||
<darktable:mask>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask>
|
||||
<darktable:mask_nb>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_nb>
|
||||
<darktable:mask_src>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_src>
|
||||
<darktable:history>
|
||||
<rdf:Seq>
|
||||
<rdf:li
|
||||
darktable:operation="flip"
|
||||
darktable:enabled="1"
|
||||
darktable:modversion="2"
|
||||
darktable:params="ffffffff"
|
||||
darktable:multi_name=""
|
||||
darktable:multi_priority="0"
|
||||
darktable:blendop_version="7"
|
||||
darktable:blendop_params="gz12eJxjYGBgkGAAgRNODESDBnsIHll8ANNSGQM="/>
|
||||
</rdf:Seq>
|
||||
</darktable:history>
|
||||
</rdf:Description>
|
||||
</rdf:RDF>
|
||||
</x:xmpmeta>
|
||||
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 5.5 MiB |
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2">
|
||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
<rdf:Description rdf:about=""
|
||||
xmlns:exif="http://ns.adobe.com/exif/1.0/"
|
||||
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
|
||||
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:darktable="http://darktable.sf.net/"
|
||||
exif:GPSAltitude="830/10"
|
||||
exif:GPSAltitudeRef="0"
|
||||
exif:GPSLatitude="50,7.499190N"
|
||||
exif:GPSLongitude="8,58.046050E"
|
||||
xmp:Rating="1"
|
||||
xmpMM:DerivedFrom="20170529-155643-DSCF5012.jpg"
|
||||
darktable:xmp_version="2"
|
||||
darktable:raw_params="0"
|
||||
darktable:auto_presets_applied="1"
|
||||
darktable:history_end="1">
|
||||
<dc:title>
|
||||
<rdf:Alt>
|
||||
<rdf:li xml:lang="x-default">Pendel IV</rdf:li>
|
||||
</rdf:Alt>
|
||||
</dc:title>
|
||||
<dc:description>
|
||||
<rdf:Alt>
|
||||
<rdf:li xml:lang="x-default">Scherbelino's Fern</rdf:li>
|
||||
</rdf:Alt>
|
||||
</dc:description>
|
||||
<darktable:mask_id>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_id>
|
||||
<darktable:mask_type>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_type>
|
||||
<darktable:mask_name>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_name>
|
||||
<darktable:mask_version>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_version>
|
||||
<darktable:mask>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask>
|
||||
<darktable:mask_nb>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_nb>
|
||||
<darktable:mask_src>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_src>
|
||||
<darktable:history>
|
||||
<rdf:Seq>
|
||||
<rdf:li
|
||||
darktable:operation="flip"
|
||||
darktable:enabled="1"
|
||||
darktable:modversion="2"
|
||||
darktable:params="ffffffff"
|
||||
darktable:multi_name=""
|
||||
darktable:multi_priority="0"
|
||||
darktable:blendop_version="7"
|
||||
darktable:blendop_params="gz12eJxjYGBgkGAAgRNODESDBnsIHll8ANNSGQM="/>
|
||||
</rdf:Seq>
|
||||
</darktable:history>
|
||||
</rdf:Description>
|
||||
</rdf:RDF>
|
||||
</x:xmpmeta>
|
||||
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 4.7 MiB |
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2">
|
||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
<rdf:Description rdf:about=""
|
||||
xmlns:exif="http://ns.adobe.com/exif/1.0/"
|
||||
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
|
||||
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:darktable="http://darktable.sf.net/"
|
||||
exif:GPSAltitude="1110/10"
|
||||
exif:GPSAltitudeRef="0"
|
||||
exif:GPSLatitude="50,4.566894N"
|
||||
exif:GPSLongitude="8,46.469616E"
|
||||
xmp:Rating="1"
|
||||
xmpMM:DerivedFrom="20170612-162213-DSCF5091.jpg"
|
||||
darktable:xmp_version="2"
|
||||
darktable:raw_params="0"
|
||||
darktable:auto_presets_applied="1"
|
||||
darktable:history_end="1">
|
||||
<dc:title>
|
||||
<rdf:Alt>
|
||||
<rdf:li xml:lang="x-default">Pendel V</rdf:li>
|
||||
</rdf:Alt>
|
||||
</dc:title>
|
||||
<dc:description>
|
||||
<rdf:Alt>
|
||||
<rdf:li xml:lang="x-default">Beech Boys</rdf:li>
|
||||
</rdf:Alt>
|
||||
</dc:description>
|
||||
<darktable:mask_id>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_id>
|
||||
<darktable:mask_type>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_type>
|
||||
<darktable:mask_name>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_name>
|
||||
<darktable:mask_version>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_version>
|
||||
<darktable:mask>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask>
|
||||
<darktable:mask_nb>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_nb>
|
||||
<darktable:mask_src>
|
||||
<rdf:Seq/>
|
||||
</darktable:mask_src>
|
||||
<darktable:history>
|
||||
<rdf:Seq>
|
||||
<rdf:li
|
||||
darktable:operation="flip"
|
||||
darktable:enabled="1"
|
||||
darktable:modversion="2"
|
||||
darktable:params="ffffffff"
|
||||
darktable:multi_name=""
|
||||
darktable:multi_priority="0"
|
||||
darktable:blendop_version="7"
|
||||
darktable:blendop_params="gz12eJxjYGBgkGAAgRNODESDBnsIHll8ANNSGQM="/>
|
||||
</rdf:Seq>
|
||||
</darktable:history>
|
||||
</rdf:Description>
|
||||
</rdf:RDF>
|
||||
</x:xmpmeta>
|
||||
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 3.0 MiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 4.6 MiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 3.1 MiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 2.2 MiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 3.1 MiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 2.8 MiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 953 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 1.9 MiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 1.7 MiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 4.3 MiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 4.4 MiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 2.6 MiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 3.7 MiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 3.8 MiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 2.4 MiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 3.0 MiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 3.7 MiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 920 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 2.7 MiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 2.4 MiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 4.8 MiB |