Download the PHP package msztorc/image-processor without Composer
On this page you can find all versions of the php package msztorc/image-processor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package image-processor
ImageProcessor Class
ImageProcessor is a wrapper class for graphics libraries like GD2, ImageMagick and epeg. Implements often used methods of graphics manipulation.
Requirements
- GD2 (php extension)
- ImageMagick (PECL library)
- epeg (cli)
Library support for object
- GD2
- ImageMagick (PECL library)
Library support for static methods
- ImageMagick (some functionality like resize, crop, effects)
- epeg (cli, only for epeg_resize method)
Usage Instructions
Objected
Staticly image resize using ImageMagick (PECL extension)
Staticly image resize using epeg (cli)
Load file
Base methods
Grayscale
Negative
Brightness
Colorize
Sepia
Custom Sepia
Display image
Save image
You can also work on image resource
Resize Performance
ImageMagick
JPEG image resize time from 5906x5906 to 1181x1181.
FILTER_POINT: 0.334532976151 sec
FILTER_BOX: 0.777871131897 sec
FILTER_TRIANGLE: 1.3695909977 sec
FILTER_HERMITE: 1.35866093636 sec
FILTER_HANNING: 4.88722896576 sec
FILTER_HAMMING: 4.88665103912 sec
FILTER_BLACKMAN: 4.89026689529 sec
FILTER_GAUSSIAN: 1.93553304672 sec
FILTER_QUADRATIC: 1.93322920799 sec
FILTER_CUBIC: 2.58396601677 sec
FILTER_CATROM: 2.58508896828 sec
FILTER_MITCHELL: 2.58368492126 sec
FILTER_LANCZOS: 3.74232912064 sec
FILTER_BESSEL: 4.03305602074 sec
FILTER_SINC: 4.90098690987 sec
CATROM has a very similar result to LANCZOS, but is significantly faster. ! Note! Above results are only demonstrative. Execution time depends upon the system configuration (processor speed, size of memory, etc...)
You can significantly speed up the processing bigger files using Imagick extension class by setting up jpeg:size
option before open file:
or using ImageProcessor class
Links
License
MIT