There is an Open Source alternative for TexturePacker that comes with tools to not only pack sprites but also extract them.