Holiday March 2010

#!/bin/bash

GENERATE_PARENT=1

PARENT="holiday_march_2010"
PDAT="${PARENT}.dat"
PTITLE="Holiday March 2010"
PDESCRIPTION="Holiday photographs from the New Forest and Cornwal"
PPARENT="photography"
PLONG_DESCR="blah"

BASEKEYS="photography,digital,March,2010,holiday"
  

hol_images/restormel_*.jpg

thumbnail

Restormel Lostwithiel P1080676
Photographs of Lostwithiel and Restormel Castle March 2010

thumbnail

Restormel Lostwithiel P1080683
Photographs of Lostwithiel and Restormel Castle March 2010

thumbnail

Restormel Lostwithiel P1080688
Photographs of Lostwithiel and Restormel Castle March 2010

thumbnail

Restormel Lostwithiel P1080694
Photographs of Lostwithiel and Restormel Castle March 2010

thumbnail

Restormel Lostwithiel P1080704
Photographs of Lostwithiel and Restormel Castle March 2010

thumbnail

Restormel Lostwithiel P1080705
Photographs of Lostwithiel and Restormel Castle March 2010

thumbnail

Restormel Lostwithiel P1080711
Photographs of Lostwithiel and Restormel Castle March 2010

thumbnail

Restormel Lostwithiel P1080716
Photographs of Lostwithiel and Restormel Castle March 2010

thumbnail

Restormel Lostwithiel P1080731
Photographs of Lostwithiel and Restormel Castle March 2010

thumbnail

Restormel Lostwithiel P1080734
Photographs of Lostwithiel and Restormel Castle March 2010

thumbnail

Restormel Lostwithiel P1080746
Photographs of Lostwithiel and Restormel Castle March 2010

thumbnail

Restormel Lostwithiel P1080749
Photographs of Lostwithiel and Restormel Castle March 2010

See also: lostwithiel restormel mist

function capitalize_words
{
	C=""
	for W in $1
	do
        C="${C} "`echo -n "${W:0:1}" | tr "[:lower:]" "[:upper:]"`${W:1}
	done
	CAPITALIZED=${C:1}
}
  

hol_images/corfe_castle_*.jpg

thumbnail

Corfe Castle P1080465
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080469
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080477
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080485
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080487
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080501
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080535
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080538
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080541
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080545
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080548
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080554
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080558
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080560
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080561
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080562
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080564
Photographs of Corfe Castle taken on holiday March 2010

thumbnail

Corfe Castle P1080565
Photographs of Corfe Castle taken on holiday March 2010

See also: corfe_castle_ ${fname% _SCALED.JPG}.jpg

function dat_from_image
{
	FILE=$1
	EXT=$2
	KEYWORDS=$3
	DESCRIPTION=$4
	PARENT=$5
	DATE=$6
	LONG_DESCR=$7

	FNAME=${FILE%${EXT}}
	DAT=${FNAME}.dat
	NPOS=`expr index ${FNAME} /`
	NAME=${FNAME:NPOS}

	if [ $GENERATE_PARENT == 1 ]
	then
		echo "thumb=${NAME}" 			>> $PDAT
	else
		DRAFTTITLE=`echo ${NAME} | tr '_' ' '`
		capitalize_words "${DRAFTTITLE}"
		TITLE=$CAPITALIZED

		echo "    head<<END_HEAD" 		>  $DAT
		echo "title=${TITLE}" 			>> $DAT
		echo "keywords=${KEYWORDS}"		>> $DAT
		echo "descr=${DESCRIPTION}"		>> $DAT
		echo "parent=${PARENT}"			>> $DAT
		echo "    END_HEAD"			>> $DAT
		echo "main=art=image"			>> $DAT
		echo "    info<<END_INFO"		>> $DAT
		echo "txt=Digital Photograph"		>> $DAT
		echo "txt=${DIM}"			>> $DAT
		echo "txt=${DATE}"			>> $DAT
		echo "text=${LONG_DESCR}"		>> $DAT
		echo "    END_INFO"			>> $DAT
		echo "Created ${DAT}"
	fi
}
  

hol_images/eden_project_*.jpg

thumbnail

Eden Project P1080609
Photographs taken within the Eden Project while on holiday March 2010

thumbnail

Eden Project P1080613
Photographs taken within the Eden Project while on holiday March 2010

thumbnail

Eden Project P1080615
Photographs taken within the Eden Project while on holiday March 2010

thumbnail

Eden Project P1080619
Photographs taken within the Eden Project while on holiday March 2010

thumbnail

Eden Project P1080628
Photographs taken within the Eden Project while on holiday March 2010

thumbnail

Eden Project P1080642
Photographs taken within the Eden Project while on holiday March 2010

thumbnail

Eden Project P1080646
Photographs taken within the Eden Project while on holiday March 2010

thumbnail

Eden Project P1080660
Photographs taken within the Eden Project while on holiday March 2010

thumbnail

Eden Project P1080661
Photographs taken within the Eden Project while on holiday March 2010

thumbnail

Eden Project P1080672
Photographs taken within the Eden Project while on holiday March 2010

See also: , rain, mist, fowey, rain, mist, eden project, rain, mist,

function dats_from_images
{
	GLOB=$1
	EXT=$2
	KEYWORDS=$3
	DESCRIPTION=$4
	PARENT=$5
	DATE=$6
	LONG_DESCR=$7

	if [ $GENERATE_PARENT == 1 ]
	then
		echo "subheading=${GLOB}" >> $PDAT
	fi

	while IFS= read -r -d $'\0' FILE;
	do
		DIM=`rdjpgcom -verbose $FILE | grep bits`
		dat_from_image 	"$FILE" "$EXT" "$KEYWORDS" "$DESCRIPTION" "$PARENT" "$DATE" "$LONG_DESCR" "$DIM"
	done < <(find $GLOB -type f -print0)
}
  

hol_images/fowey_*.jpg

thumbnail

Fowey P1080574
Photographs taken in the coastal town of Fowey on holiday in Cornwal, March 2010

thumbnail

Fowey P1080579
Photographs taken in the coastal town of Fowey on holiday in Cornwal, March 2010

thumbnail

Fowey P1080585
Photographs taken in the coastal town of Fowey on holiday in Cornwal, March 2010

thumbnail

Fowey P1080588
Photographs taken in the coastal town of Fowey on holiday in Cornwal, March 2010

thumbnail

Fowey P1080591
Photographs taken in the coastal town of Fowey on holiday in Cornwal, March 2010

thumbnail

Fowey P1080597
Photographs taken in the coastal town of Fowey on holiday in Cornwal, March 2010

See also: , rain, mist, fowey, rain, mist, eden project, rain, mist,

	if [ $GENERATE_PARENT == 1 ]
	then
		echo "    head<<END_HEAD" 		>  $PDAT
		echo "title=${PTITLE}" 			>> $PDAT
		echo "keywords=${PKEYWORDS}"		>> $PDAT
		echo "descr=${PDESCRIPTION}"		>> $PDAT
		echo "parent=${PPARENT}"		>> $PDAT
		echo "    END_HEAD"			>> $PDAT
		echo "    main<<END_MAIN"		>> $PDAT
	fi
  

hol_images/P1080*.JPG

thumbnail

P1080230 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080234 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080248 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080259 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080279 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080298 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080320 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080330 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080357 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080395 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080396 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080397 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080405 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080407 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080408 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080409 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

thumbnail

P1080415 SCALED
Photographs taken in the New Forest, Hampshire, March 2010

See also: matley lepe calshot

GLOB="hol_images/restormel_*.jpg"
KEYWORDS="${BASEKEYS},nature,restormel,lostwithiel,hills,castle,moss,rain,mist,stone"
DESCRIPTION="Photographs of Lostwithiel and Restormel Castle March 2010"
DATE="Monday 22nd March 2010"
LONG_DESCR="Photographs taken while on holiday in Cornwal. This set\
were taken along a walk from Lostwithiel to Restormel Castle."
dats_from_images "$GLOB" ".jpg" "$KEYWORDS" "$DESCRIPTION" "$PARENT" "$DATE" "$LONG_DESCR"

GLOB="hol_images/corfe_castle_*.jpg"
KEYWORDS="${BASEKEYS},corfe,castle,ruins,explosives,undermining,stone,dorset"
DESCRIPTION="Photographs of Corfe Castle taken on holiday March 2010"
DATE="Tuesday 23rd March 2010"
LONG_DESCR="Photographs of Corfe Castle, Wareham, on the Isle of \
Purbeck, Dorset, taken on holiday in March 2010."
dats_from_images "$GLOB" ".jpg" "$KEYWORDS" "$DESCRIPTION" "$PARENT" "$DATE" "$LONG_DESCR"

GLOB="hol_images/eden_project_*.jpg"
KEYWORDS="${BASEKEYS},eden,eden-project,cornwall,gardens,ecology,rain,mist"
DESCRIPTION="Photographs taken within the Eden Project while on holiday March 2010"
DATE="Tuesday 23rd March 2010"
LONG_DESCR="Photographs of The Eden Project near St Blazey in Cornwall, \
taken on holiday in March 2010."
dats_from_images "$GLOB" ".jpg" "$KEYWORDS" "$DESCRIPTION" "$PARENT" "$DATE" "$LONG_DESCR"

GLOB="hol_images/fowey_*.jpg"
KEYWORDS="${BASEKEYS},fowey,cornwall,rain,mist,sea,coast,rocks,stone"
DESCRIPTION="Photographs taken in the coastal town of Fowey on holiday in Cornwal, March 2010"
DATE="Tuesday 23rd March 2010"
LONG_DESCR="Photographs of Fowey on a very wet day while on holiday in Cornwal, March 2010"
dats_from_images "$GLOB" ".jpg" "$KEYWORDS" "$DESCRIPTION" "$PARENT" "$DATE" "$LONG_DESCR"

GLOB="hol_images/P1080*.JPG"
KEYWORDS="${BASEKEYS},matley,lepe,calshot,nature,new-forest,forest,hampshire,rocks,stone,trees,dung,wood"
DESCRIPTION="Photographs taken in the New Forest, Hampshire, March 2010"
DATE="Tuesday 23rd March 2010"
LONG_DESCR="Photographs taken while on holiday in the New Forest, Hampshire, March 2010"
dats_from_images "$GLOB" ".JPG" "$KEYWORDS" "$DESCRIPTION" "$PARENT" "$DATE" "$LONG_DESCR"
  

Information

"Holiday March 2010"

Holiday photographs from the New Forest and Cornwall

Our holiday was financed by reputation points earned through shopping at a certain popular retailer. Due to restrictions in how we could 'spend' our points, we needed to split our stays into two different hotels. The first hotel was in the New Forest and would act as a halfway stopping point in our journey to Cornwall. We spent two days in Lyndhurst, Hampshire, followed by three days in Lostwithiel, Cornwall.

	if [ $GENERATE_PARENT == 1 ]
	then
		echo "    END_MAIN"			>> $PDAT
		echo "    info<<END_INFO"		>> $PDAT
		echo "text=${PLONG_DESCR}"		>> $PDAT
		echo "    END_INFO"			>> $PDAT
		echo "Created ${PDAT}"
	fi
  

DISCLAIMER: The opinions and attitudes of James W. Morris as expressed here in the past may or may not accurately reflect the opinions and attitudes of James W. Morris at present, moreover, they may never have.

Comments

this page last updated:29th April 2013 jwm-art.net (C) 2003 - 2017 James W. Morris

script time:0.0746