Failed to install ghostscript, during Imagemagick installation
:debug:main Privilege de-escalation not attempted as not running as root.


It seems from the error log that you aren't running as root even though you used sudo. You need to make sure you're in an admin account then use sudo port install imagemagick.