build-image icon indicating copy to clipboard operation
build-image copied to clipboard

Specify ImageMagick version??

Open joshRpowell opened this issue 7 years ago • 13 comments

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.

joshRpowell avatar Mar 01 '18 18:03 joshRpowell

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.

brycekahle avatar Mar 01 '18 18:03 brycekahle

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

bcomnes avatar Feb 16 '19 01:02 bcomnes

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

zakjan avatar Jul 08 '19 05:07 zakjan

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

jessecrouch avatar Oct 28 '19 02:10 jessecrouch

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?

jacintoArias avatar May 23 '20 17:05 jacintoArias

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.

timothy-kodes avatar Sep 26 '20 14:09 timothy-kodes

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 avatar Sep 27 '20 08:09 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.

clintonb avatar Sep 27 '20 13:09 clintonb

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

YJPL avatar Sep 27 '20 13:09 YJPL

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

clintonb avatar Sep 27 '20 15:09 clintonb

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 avatar Sep 27 '20 17:09 timothy-kodes

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 avatar Sep 27 '20 17:09 timothy-kodes

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!

timothy-kodes avatar Oct 05 '20 11:10 timothy-kodes