algorithmiaio / langpacks

Standardized builder and runners for Algorithmia algorithms
https://algorithmia.com/
MIT License
16 stars 9 forks source link

Imagemagick hotfix1 #204

Closed zeryx closed 3 years ago

zeryx commented 3 years ago

This PR fixes a very strange issue with imagemagick and pdf parsing. As the objective for this environment is pdf -> img conversion, this is a critical component and a fix needed to be made.

to verify, execute this in the langpacks directory: ./tools/environment_validator.py -b ubuntu:20.04 -g python3 -s python37 -d imagemagick -t template -n python37-im -k YOUR_PROD_API_KEY

in a separate tab, you'll need a data collection you can write files to; but once you have that you can execute the following curl localhost:9999 -H 'Content-Type: application/json' -d '{"input": "data://zeryx/collection/bitcoinica_18th_report.pdf", "output":"sample.png", "collection":"data://.my/collection_name"}'