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......
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
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.
 

Sherman Homan

macrumors 6502
Oct 27, 2006
463
0
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.
 

Damien

macrumors regular
Mar 2, 2004
244
31
Canterbury
Why dont developers use Zip more, it's cleaner and easier for the user to mount/unzip than a dmg. No white box rubbish
 

mkrishnan

Moderator emeritus
Jan 9, 2004
29,776
15
Grand Rapids, MI, USA
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.