<p>OK, my solution for that:</p>
<p>vi Gemfile<br>
gem "image_optim", "~> 0.25"<br>
gem "image_optim_pack", "= 0.2.3"</p>
<p>sudo gem install image_optim<br>
sudo gem install image_optim_pack<br>
sudo apt install -y npm nodejs</p>
<p>sudo npm install -g svgo<br>
sudo ln -s /usr/bin/nodejs /usr/bin/node</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2212#issuecomment-484854018">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOOC2JO7XYOKB3MH63PRGRWNANCNFSM4HHDNQIA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLIMT6KNLNWOD4PCTT3PRGRWNANCNFSM4HHDNQIA.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"PERSON","message":"@kostjaz in #2212: OK, my solution for that:\r\n\r\nvi Gemfile\r\ngem \"image_optim\", \"~\u003e 0.25\"\r\ngem \"image_optim_pack\", \"= 0.2.3\"\r\n\r\nsudo gem install image_optim\r\nsudo gem install image_optim_pack\r\nsudo apt install -y npm nodejs\r\n\r\nsudo npm install -g svgo\r\nsudo ln -s /usr/bin/nodejs /usr/bin/node"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/2212#issuecomment-484854018"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2212#issuecomment-484854018",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2212#issuecomment-484854018",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>