Apparently ImageMagick no longer appends a newline to the format. This also sets the execute bit on the script.