alex.plescan
alex.plescan
CDCloudflare Developers
Created by egmaleta on 8/12/2023 in #pages-help
How to use Imagemagick?
Aaah I missed your mention of setting the UNSTABLE_PRE_BUILD env var. I just did that and of course it immediately started working! A thought is that it may be useful for the imagemagick plugin to be preinstalled. It took ~8 minutes between running the pre-build command and my build continuing on - smells like maybe imagemagick was being built from source?
18:24:53.237 Running user-defined pre-build script: asdf plugin add imagemagick && asdf install imagemagick 7.1.1-15 && asdf global imagemagick 7.1.1-15
...
18:33:15.490 Found a .tool-versions file. Installing dependencies.
18:24:53.237 Running user-defined pre-build script: asdf plugin add imagemagick && asdf install imagemagick 7.1.1-15 && asdf global imagemagick 7.1.1-15
...
18:33:15.490 Found a .tool-versions file. Installing dependencies.
Anyway - now my site's building with the V2 build system! Thanks for your help and for your work on Pages 😁 🧡
15 replies
CDCloudflare Developers
Created by egmaleta on 8/12/2023 in #pages-help
How to use Imagemagick?
Hey @johndotawesome - thanks for that. I use asdf for local development so it's great to know it aligns with what the Cloudflare builder uses too! Looks like the imagemagick asdf plugin isn't included though. After declaring it my .tool-versions, my build fails on the "Building application" step, with:
08:31:10.135 Success: Finished cloning repository files
08:31:10.817 Found a .tool-versions file. Installing dependencies.
08:31:11.404 imagemagick plugin is not installed
08:31:10.135 Success: Finished cloning repository files
08:31:10.817 Found a .tool-versions file. Installing dependencies.
08:31:11.404 imagemagick plugin is not installed
15 replies
CDCloudflare Developers
Created by egmaleta on 8/12/2023 in #pages-help
How to use Imagemagick?
Hey @johndotawesome - thanks for looking into this! I'm also keen to use ImageMagick on v2. I think it's the only thing stopping me from being able to migrate my Jekyll site over from v1. I use the jekyll_picture_tag ruby gem at build-time to create variants of my blog's images in different formats and sizes. Under the hood, that gem requires either ImageMagick or MiniMagick to be installed. Let me know if you want more details, I'm happy to share deployment logs with you, etc.
15 replies