Skip to content

pmor/image-optim-buildpack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Image-Optim Buildpack

Add binaries for image-optim on Heroku, can be used with heroku-buildpack-multi.

Built-in support for image-optim gem, creation of .image-optim.yml config file.

Binaries in this buildpacks :

  • advpng
  • gifsicle
  • jpegoptim
  • jpegtran
  • jhead
  • jpeg-recompress
  • optipng
  • pngcrush
  • pngquant

Binaries are in this git repo in vendor/image-optim

On compilation :

  • Binaries are copied into vendor/image-optim
  • Symlink to binaries is added to ensure next buildpacks will have binaries available
  • vendor/image-optim is added to PATH through a .profile.d script
  • Add config file .image-optim.yml if Gemfile present
  • Version of each binaries is displayed

Credits

© 2020 Pedro Moreira

Forked from https://github.com/bobbus/image-optim-buildpack

Released under the MIT License.