mattmorris.org
@joeworkman If it’s already read-write: e.g., 300 megabyte hdiutil resize -size 300m foo.dmg