Download the PHP package jonathanmaron/image-optimizer without Composer

On this page you can find all versions of the php package jonathanmaron/image-optimizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package image-optimizer

Image Optimizer

Image optimization and compression tool for the console. This tool optimizes PNG, JPEG and GIF files, using gifsicle, jpegoptim, jpegtran, pngcrush and pngout and can usually reduce the filesize by 10% to 70%.

As optimzing images is CPU intensive and it may take several minutes for a larger PNG file, image-optimizer keeps track of which image files it has optimized. Each image file will only be optimize once, unless the --force flag is set.

image-optimizer is intended to be run unattended in a cronjob.

Example Usage

Optimize Images In /path/to/images

image-optimizer --path="/path/to/images"

Optimize Images In /path/to/images, Ignoring History

image-optimizer --path="/path/to/images" --force

Set All Images In /path/to/images As Optimized

image-optimizer --path="/path/to/images" --index-only

Installation

Installation is via composer:

cd ~/install-path

composer create-project jonathanmaron/image-optimizer

It is recommended to include ~/bin in your PATH variable:

PATH=$PATH:~/install-path/image-optimizer/bin

so that image-optimizer is available to the logged in user globally.

Upgrading From v1 and v2

Between v1 and v3, the structure of the history directory was updated. Therefore, please remove your current history directory. A new one, with the new structure, will be created when image-optimizer is executed for the first time:

rm -fr ~/.image_optimizer

Dependencies

image-optimizer depends upon gifsicle, jpegoptim, jpegtran, pngcrush and pngout to perform its work. These tools must be installed, otherwise image-optimizer will return an error.

Download and install pngout at:

http://static.jonof.id.au/dl/kenutils/pngout-20150319-linux-static.tar.gz (or newer)

then unpack, then copy to:

/usr/bin/pngout

Download and install other dependencies:

apt install pngcrush libjpeg-progs jpegoptim gifsicle

All versions of image-optimizer with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
container-interop/container-interop Version ^1.2
symfony/config Version ^4.0
symfony/console Version ^4.0
symfony/filesystem Version ^4.0
symfony/finder Version ^4.0
symfony/lock Version ^4.0
symfony/process Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jonathanmaron/image-optimizer contains the following files

Loading the files please wait ....