Creating in instance of ImageMagick for an image is pretty expensive, I suggest considering and checking the LeadTools imaging functionality to replace ImageMagick in some or even all cases.
Read more about LeadTools:
https://www.leadtools.com/sdk/products/imaging