A buildpack that reduces the size of JPEG files in Heroku apps using mozjpeg.
-
Enable Heroku buildpack multi.
$ heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-multi
-
Create text file named
.buildpacks
in the root of your application. Its contents should be:-
For Ruby and Rails
https://github.com/michrome/heroku-buildpack-mozjpeg-encoder https://github.com/heroku/heroku-buildpack-ruby
-
For Node.js
https://github.com/michrome/heroku-buildpack-mozjpeg-encoder https://github.com/heroku/heroku-buildpack-nodejs
-
For other languages and frameworks
https://github.com/michrome/heroku-buildpack-mozjpeg-encoder # See https://devcenter.heroku.com/articles/buildpacks#default-buildpacks for your language/framework
-