Resizing a disk image on macOSEdit2/26/2024hdiutil resize -size 10g example.sparseimage Via Stack Overflow. wiki