Sign inSign up

beecomprg/docker-image-optim

By beecomprg

•Updated about 6 years ago

Beecom Image optimization docker

Image
0

274

beecomprg/docker-image-optim repository overview

⁠beecom-image-optim

Beecom Image optimization app and docker

⁠Build Setup

# install dependencies
$ npm install

# run optimalization
$ npm run start

⁠Docker

Visit our official dockerhub page⁠

docker pull beecomprg/docker-image-optim:latest

⁠Locahost setup

Create a .env file and set directory:

# directory where to look for images
DIRECTORY=./images/
# gutzli produce best compression but is about 100x slower
USE_GUETZLI=0
# maximum number of images to process in one run
BATCH_SIZE=5000
# level of verbosity
# 0 - only ERR
# 1 - including WARN and INFO
VERBOSE=0

⁠Environement variables

The following table lists the environement variables that beecom-image-optim application expects and their default values.

ParameterDescriptionDefault
DIRECTORYDirectory where to look for images''
USE_GUETZLIEnable Guetzli0
BATCH_SIZENumber of images to process1000
VERBOSELevel of verbosity0

Tag summary

Content type

Image

Digest

Size

44.8 MB

Last updated

about 6 years ago

docker pull beecomprg/docker-image-optim