See also
Wordpress to Octopress: Images¶
Another step on my way from moving from Wordpress to Octopress and to free the pictures out of Wordpress and the NextGen-Gallery plug-in.
This script takes the exported CSV-files from the MySQL tables from the NextGen-Gallery and greps the information of your exported posts and replaces the NextGen-Gallery syntax with either:
Fancybox syntax
Photo-tag plugin syntax
Octopress syntax
As with the gallery script you basically run it once without any parameters to get the syntax and then you act accordingly.