```
mogrify -path thumbs -resize 560x originals/*
mogrify -path images -resize 2048x originals/*
```
File.open("_data/photos.yml","w"){|f| f<<YAML.load(File.read "_data/photogs.yml").collect{|photog| photog["images"].collect{|image| {filename:image["filename"],description:image["description"],photog:photog["name"],related:(photog["images"]-[image]).collect{|photo| photo["filename"]}}}}.flatten.to_yaml}