With these changes, create-dmg always generates the biggest possible icon size (ic10, 1024 × 1024), even if the source app's icon lacks this size. This makes sure the dmg icon is always nice and sharp.
To generate this large size, the code picks the biggest possible app icon size naively, based on the size of its representing buffer. Things should almost always be good enough!
Should fix #43.
With these changes, create-dmg always generates the biggest possible icon size (
ic10
, 1024 × 1024), even if the source app's icon lacks this size. This makes sure the dmg icon is always nice and sharp. To generate this large size, the code picks the biggest possible app icon size naively, based on the size of its representing buffer. Things should almost always be good enough!