is there any lightweight command line batch image cropping tool(Linux or Windows) which can handle a variety of the formats ?
Imagemagick is what you want -- tried and true.