Using imagemagick in code blocks

Hi folks,

anyone had luck using imagemagick in Workflow code blocks?
Specifically for image resizing. I'm fetching an image from S3, and want to reduce it to a thumbnail.

After including it in the JS libraries of the workflow, it can't be referenced, required or imported. Code blocks that reference it fail with imagemagick is not defined.