Open datapolitical opened 3 years ago
Hello!
I'm surprised it builds on gihub pages; maybe they added imagemagick to the build image?
This problem comes from the fact that anything based on ubuntu ships an aggressively out of date version of Imagemagick, which does not support cropping by aspect ratio. We ended up switching backends to libvips in 2.0, which gives faster builds, and we started calculating aspect ratio on our own. Consider updating?
So I misspoke slightly, it runs fine in a GitHub action using Ubuntu–latest. And you're right, I'm using 1.14 explicitly in my gemfile, and I remember there's a reason but I don't remember what it is.
So I just did the upgrade as you suggested, and it worked! On cloudflare. Now, the build fails on GitHub actions, which I believe is the reason I switched back to 1.14
Even after installing libvips42 with sudo apt-get I get:
Liquid Exception: No such file or directory - vips in /home/runner/work/chrisfnicholson.github.io/chrisfnicholson.github.io/vendor/bundle/ruby/2.7.0/bundler/gems/contrast-137eda1afda7/_layouts/recipes.html
I kind of need it working on GitHub actions as well because cloudflare pages is very new software and will probably break at some point, so I want to make sure I can build the old way on GitHub actions if need be.
So my site builds just fine on GitHub Pages, but when I try building it on cloudflare I get this error, which I can tell is related to the JPT code:
I think it has something to do with the quotation marks, which aren't present in my code but must be coming from somewhere, because I read that other people have had issues with quotation mark types when dealing with mogrify. But since the code runs fine locally and on GitHub, I'm not sure how to fix it.