Install image optimisation tools on rails machines
authorTom Hughes <tom@compton.nu>
Wed, 29 Nov 2017 15:44:47 +0000 (15:44 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 29 Nov 2017 15:44:47 +0000 (15:44 +0000)
cookbooks/web/resources/rails_port.rb

index 4d30aa7..8e6d929 100644 (file)
@@ -87,6 +87,17 @@ action :create do
     libmemcached-dev
   ]
 
+  package %w[
+    pngcrush
+    advancecomp
+    optipng
+    pngquant
+    jhead
+    jpegoptim
+    gifsicle
+    libjpeg-turbo-progs
+  ]
+
   gem_package "bundler#{new_resource.ruby}" do
     package_name "bundler"
     version "1.3.5"