mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
Merge branch 'master' of github.com:flynx/ImageGrid
This commit is contained in:
commit
54165fca7d
@ -166,7 +166,7 @@ while true ; do
|
|||||||
|
|
||||||
mkdir -vp "$DIR"
|
mkdir -vp "$DIR"
|
||||||
|
|
||||||
echo "Copying files from $1..."
|
echo "Copying files from ${BASE}/${DRIVE}..."
|
||||||
$COPY $COPYFLAGS ${BASE}/${DRIVE}/* "$DIR"
|
$COPY $COPYFLAGS ${BASE}/${DRIVE}/* "$DIR"
|
||||||
echo "Copying files: done."
|
echo "Copying files: done."
|
||||||
|
|
||||||
|
|||||||
@ -142,8 +142,7 @@ JSON_NAME="%-:1d/${METADATA_DIR}/%f.json"
|
|||||||
# - creates a file: $RAW-thumb.jpg
|
# - creates a file: $RAW-thumb.jpg
|
||||||
# dcraw -c $RAW | pnmtojpeg -quality=90 > $JPG
|
# dcraw -c $RAW | pnmtojpeg -quality=90 > $JPG
|
||||||
# - process raw and convert to jpeg (slow)
|
# - process raw and convert to jpeg (slow)
|
||||||
# TODO ignore (or err on) raw images located in the ARCHIVE_ROOT directly...
|
# TODO ignore raw images located in the ARCHIVE_ROOT directly...
|
||||||
# ...to avoid creating directories outside of $ARCHIVE_ROOT...
|
|
||||||
|
|
||||||
# XXX need to also copy jpg originals to the preview dir (things that
|
# XXX need to also copy jpg originals to the preview dir (things that
|
||||||
# were shot in jpeg in-camera)...
|
# were shot in jpeg in-camera)...
|
||||||
@ -272,6 +271,7 @@ cd "./${ARCHIVE_ROOT}"
|
|||||||
|
|
||||||
# make low-res previews...
|
# make low-res previews...
|
||||||
if [ -z $SKIP_PREVIEWS ] || [ $LOW_RES_PREVIEWS ] ; then
|
if [ -z $SKIP_PREVIEWS ] || [ $LOW_RES_PREVIEWS ] ; then
|
||||||
|
#find . -path '*hi-res (RAW)/*.jpg' -exec bash -c 'makepreview "$SIZE" "{}"' \;
|
||||||
find . -path '*hi-res (RAW)/*.jpg' -print0 \
|
find . -path '*hi-res (RAW)/*.jpg' -print0 \
|
||||||
| xargs -0 -n 1 -P $THREADS -I {} bash -c 'makepreview "$SIZE" "{}"'
|
| xargs -0 -n 1 -P $THREADS -I {} bash -c 'makepreview "$SIZE" "{}"'
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -138,20 +138,19 @@ while true ; do
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# XXX do a real three digit count...
|
||||||
# single flash card...
|
# single flash card...
|
||||||
SCOUNT=`printf "%03d" $COUNT`
|
SCOUNT=`printf "%03d" $COUNT`
|
||||||
if [ -z $MULTI ] ; then
|
if [ -z $MULTI ] ; then
|
||||||
DIR="${DATE}.${SCOUNT}"
|
DIR="${DATE}.${SCOUNT}${TITLE}"
|
||||||
while [ -e *"$DIR"* ] ; do
|
while [ -e *"$DIR"* ] ; do
|
||||||
COUNT=$((COUNT+1))
|
COUNT=$((COUNT+1))
|
||||||
SCOUNT=`printf "%03d" $COUNT`
|
SCOUNT=`printf "%03d" $COUNT`
|
||||||
DIR="${DATE}.${SCOUNT}"
|
DIR="${DATE}.${SCOUNT}${TITLE}"
|
||||||
done
|
done
|
||||||
BASE_DIR=$DIR
|
BASE_DIR=$DIR
|
||||||
DIR="${DIR}${TITLE}"
|
|
||||||
|
|
||||||
# multiple flash cards shoot...
|
# multiple flash cards shoot...
|
||||||
# XXX need to check for matches on the root too...
|
|
||||||
else
|
else
|
||||||
BASE_DIR="${DATE}${TITLE}/"
|
BASE_DIR="${DATE}${TITLE}/"
|
||||||
DIR="${BASE_DIR}/${DATE}.${SCOUNT}"
|
DIR="${BASE_DIR}/${DATE}.${SCOUNT}"
|
||||||
@ -167,7 +166,7 @@ while true ; do
|
|||||||
|
|
||||||
mkdir -vp "$DIR"
|
mkdir -vp "$DIR"
|
||||||
|
|
||||||
echo "Copying files from $1..."
|
echo "Copying files from ${BASE}/${DRIVE}..."
|
||||||
$COPY $COPYFLAGS ${BASE}/${DRIVE}/* "$DIR"
|
$COPY $COPYFLAGS ${BASE}/${DRIVE}/* "$DIR"
|
||||||
echo "Copying files: done."
|
echo "Copying files: done."
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user