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 4d30aa7ccc9a3f3931c5b6af5ab3c1eb308f76b1..8e6d929ccdc1c9d5cd8d330ba86573c682f706fd 100644 (file)
@@ -87,6 +87,17 @@ action :create do
     libmemcached-dev
   ]
 
     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"
   gem_package "bundler#{new_resource.ruby}" do
     package_name "bundler"
     version "1.3.5"