rename xxx-200-???.jpg to [login to view URL] in DB (just remove the height value from filenames)
resize all files from 400 to 200x? and 133x? under a specified folder automatically.
Easy. What kind of final compression do you want on the images? I can re-encode the images into gif, png, or jpeg as required. You can have precise control over the jpeg compression level also. I look forward to hearing from you. - Nathanael Jones