build-image
build-image copied to clipboard
Specify ImageMagick version??
We use Middleman Favicon Maker in our Middleman app and get the following in our build logs:
WARNING! Your installed ImageMagick version 6.7.7 is not up-to-date and might produce suboptimal output!
The latest stable v6 release of ImageMagick is 6.9.9-36.
Unfortunately that is the latest version available via Ubuntu packages. I will see if I can locate a PPA that has a later version for Ubuntu 14.04.
We could possibly use something like https://asdf-vm.com/#/ to do this.
Is there any progress on this? Newer ImageMagick is needed for WebP support in jekyll_picture_tag.
+1 I am also using jekyll_picture_tag. Webp support is highly recommended by Google Pagespeed/Lighthouse for image compression. I believe ImageMagick gets built by default in Linux without webp support (it's an option), so this might be asking for something more custom in the build than just version.
Any news on this? We will have to migrate the build to another CI if we cannot use webp. Does anyone have a workaround to make jekyll_picture_tag work in Netlify builds?
Any news on this? We will have to migrate the build to another CI if we cannot use webp. Does anyone have a workaround to make jekyll_picture_tag work in Netlify builds?
No unfortunately still waiting for support also.
Any news on this? We will have to migrate the build to another CI if we cannot use webp. Does anyone have a workaround to make jekyll_picture_tag work in Netlify builds?
Not sure, but it might help to change your build image settings: https://community.netlify.com/t/build-fails-with-convert-delegate-failed-cwebp-quiet-imagemagick-issue/7714/8?u=yjpl
@YJPL you linked to an error message that occurs for Ubuntu 16.04. What settings do you think will resolve this issue? Changing Ubuntu versions does not resolve the issue.
@YJPL you linked to an error message that occurs for Ubuntu 16.04. What settings do you think will resolve this issue? Changing Ubuntu versions does not resolve the issue.
It doesn't work with Ubuntu 16.04 for me, the build breaks. 14.04 works fine.
Got it. Note for others: if you see errors about Bundler versions (e.g., 2.1.4 not supported), set the RUBY_VERSION environment variable to your Ruby version (e.g., 2.7.1).
Unfortunately that is the latest version available via Ubuntu packages. I will see if I can locate a PPA that has a later version for Ubuntu 14.04.
So I had to use 14.04 to get my site to work with webm probably because you did add the PPA for imageMagick. But why not do the same with Ubuntu 16.04 ? Also please update the correct version you managed to add to the build image on: https://github.com/netlify/build-image/blob/trusty/included_software.md it still says imagemagick 6.7.7 which confused the heck out of me when searching for a solution.
Got it. Note for others: if you see errors about Bundler versions (e.g., 2.1.4 not supported), set the
RUBY_VERSIONenvironment variable to your Ruby version (e.g., 2.7.1).
If you set ruby version 2.7.1 using the ubuntu 14.04 it will significantly slow down the build. I went from 29 sec on ubuntu 16.04 to 4.36 minutes on 14.04
Got it. Note for others: if you see errors about Bundler versions (e.g., 2.1.4 not supported), set the
RUBY_VERSIONenvironment variable to your Ruby version (e.g., 2.7.1).If you set ruby version 2.7.1 using the ubuntu 14.04 it will significantly slow down the build. I went from 29 sec on ubuntu 16.04 to 4.36 minutes on 14.04
Btw I just switched to gatsby. So nice!