Photography – Portrait Lighting Patterns

I read an interesting article about common lighting patterns but the example images were lacking some clarity. I took a copy of the images and added some details that would help me remember each technique.

Roll your mouse over the image to see the original without my markups.


Let me know if you found this post useful or if I got anything wrong.

Converting RAW images to Jpeg on Ubuntu

You’ll need to install a few packages before this works:
sudo apt-get install netpbm
sudo apt-get install dcraw
sudo apt-get install libimage-exiftool-perl
Once you’ve got these installed, put the following in a file in ~/.gnome2/nautilus-scripts/ and restart Nautilus to add it to the right-click context menu.

message=`echo “Converting $files RAW files to Jpeg”`

(while [ $# -gt 0 ]; do

# Strip off the file extension, including the “.”
upperExt=`echo $1 | sed ‘s/.*\(\..*\)/\1/’ | tr ‘[a-z]’ ‘[A-Z]’`

if [ -f “$1” ]
# Get the file name without the extension
trimmed=`echo $1 | sed ‘s/\(.*\)\..*/\1/’`

if [ $upperExt = “.PPM” -o $upperExt = “.CR2” -o $upperExt = “.NEF” -o $upperExt = “.OTHER_RAW_EXTENSION” ]
if [ $upperExt = “.PPM” ]
# Convert the PPM image to a Jpeg
pnmtojpeg “$1” > “$trimmed.jpg”
# Convert the RAW image to a Jpeg
dcraw -c -w -h -b 1.0 “$1” | pnmtojpeg > “$trimmed.jpg”
# Copy EXIF data to the new Jpeg image
exiftool -overwrite_original -TagsFromFile “$1” “$trimmed.jpg” >/dev/null

# Set the Jpeg’s file timestamp to match the EXIF date
dcraw -z “$trimmed.jpg”
# Output the zenity progress bar
sav=`echo “(($count / $files) * 100)” | bc -l`
echo $sav
count=`expr $count + 1`
done) | zenity –progress –auto-close –auto-kill –text “$message”


You’ll have to make the file executable by using:
chmod +x

I modified the script to convert PPM files created by UFRaw as well. Also now using pnmtojpeg instead of ppmtojpeg.