Here's a quick, hacky Python script I wrote that uses PIL to make an image pack. Give it a source directory tree as the first argument. The source directory should have the directory structure that the FOC docs request (i.e. gender_male and gender_female in the root, then subrace directories). It probably will work fine if you just give it a plain directory of images. Provide a destination directory as the second argument. It will copy files, converting to JPG if necessary and renaming them, at the same time building the imagemeta.js files the pack spec needs.I got what I was doing wrong now. Thanks.
In other words put the file where your folder of images lives, then run "python make_foc_imgpack.py source_image_directory image_pack_directory"