Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.2 KB

README.md

File metadata and controls

32 lines (24 loc) · 1.2 KB

Heroku image optimizers buildpack

This buildpack will provide the following image optimizer binaries to your Heroku app:

  • advpng
  • gifsicle
  • jpegoptim
  • jpegtran
  • optipng
  • pngcrush
  • pngquant
  • cwebp
  • dwebp

This buildpack supports the following Heroku stacks:

During compile time of this buildpack the following steps will be done:

  • Detect the current used stack
  • Copy the binaries in the folder vendor/optimizers inside the $BUILD_DIR
  • Symlinks to the binaries will be added to ensure that possible following buildpacks will have these binaries available
  • The path vendor/optimizers will be added to the PATH environment through the optimizers.sh script which is located in the .profile.d folder
  • At the end the version of each binary is displayed

Installation/Usage

To use this buildpack you can add it by multiple ways to your Heroku app. Please see the Heroku documentation for further information.