Some Linux distributions (like el8) don’t provide the imagick plug in for php for security reasons. Fortunately, you don’t need it for nextcloud. As far as I can tell, the ONLY thing it is used for is changing the color of the favicon if you set a custom color in the theme settings.