dmgutil is an Open Source command line tool for creating, configuring, and compressing Mac OS X disk images for distribution.
dmgutil supports programmatic creation of disk images - allowing you to configure a background image, set window/icon sizes and positions, and apply custom icons prior to compressing the image for release.
What's new in this version:
* Fixed typo that reduced compression
Website
Download dmgutil