netlify / build-image

This is the build image used for running automated builds
MIT License
496 stars 197 forks source link

Specify ImageMagick version?? #157

Open joshRpowell opened 6 years ago

joshRpowell commented 6 years ago

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.

brycekahle commented 6 years ago

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.

bcomnes commented 5 years ago

We could possibly use something like https://asdf-vm.com/#/ to do this.

zakjan commented 5 years ago

Is there any progress on this? Newer ImageMagick is needed for WebP support in jekyll_picture_tag.

jessecrouch commented 4 years ago

+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.

jacintoArias commented 4 years ago

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?

timothy-kodes commented 3 years ago

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.

YJPL commented 3 years ago

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

clintonb commented 3 years ago

@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 commented 3 years ago

@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.

clintonb commented 3 years ago

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).

timothy-kodes commented 3 years ago

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.

timothy-kodes commented 3 years ago

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).

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

timothy-kodes commented 3 years ago

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).

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!