Compressing dmg image.....

Discussion in 'Mac Programming' started by vnraju, Sep 16, 2007.

  1. vnraju macrumors newbie

    vnraju

    Joined:
    Jun 27, 2007
    #1
    how to compress(programmatically) the dmg image ?
    any suggestions will be appreciated....
    thanx iin advance......
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    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.
     
  3. Sherman Homan macrumors 6502

    Joined:
    Oct 27, 2006
    #3
    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.
     
  4. Damien macrumors regular

    Joined:
    Mar 2, 2004
    Location:
    Canterbury
    #4
    Why dont developers use Zip more, it's cleaner and easier for the user to mount/unzip than a dmg. No white box rubbish
     
  5. vnraju thread starter macrumors newbie

    vnraju

    Joined:
    Jun 27, 2007
  6. mkrishnan Moderator emeritus

    mkrishnan

    Joined:
    Jan 9, 2004
    Location:
    Grand Rapids, MI, USA
    #6
    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.
     

Share This Page