Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

vnraju

macrumors newbie
Original poster
Jun 27, 2007
25
0
how to compress(programmatically) the dmg image ?
any suggestions will be appreciated....
thanx iin advance......
 
Use hdiutil. Type "hdiutil compress -help" into Terminal, and there are compressed formats you can convert a dmg to. You'll have to call the hdiutil task from your code.
 
Could I ask why you want to compress it? It is already pretty tightly packed. Recoding it may actually increase its size with the compression envelope you use. Of instance I just zipped the latest GoogleEarth dmg file and it is only 50 kb smaller from the 27 meg original.
 
Why dont developers use Zip more, it's cleaner and easier for the user to mount/unzip than a dmg. No white box rubbish
 
Why dont developers use Zip more, it's cleaner and easier for the user to mount/unzip than a dmg. No white box rubbish

Probably because DMGs have more user interface features -- they can pop up licensing agreements, for instance, that require acceptance before mounting.

Also disk images implement modern encryption.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.