PDA

View Full Version : Compressing dmg image.....




vnraju
Sep 17, 2007, 01:06 AM
how to compress(programmatically) the dmg image ?
any suggestions will be appreciated....
thanx iin advance......



kainjow
Sep 17, 2007, 08:01 AM
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
Sep 17, 2007, 08:15 AM
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
Sep 17, 2007, 08:15 AM
Why dont developers use Zip more, it's cleaner and easier for the user to mount/unzip than a dmg. No white box rubbish

vnraju
Sep 17, 2007, 09:08 AM
thanx for responses need some more

mkrishnan
Sep 17, 2007, 09:13 AM
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.