Releases: Orbitale/ImageMagickPHP
v2.0.1
v2.0.0
New of the v2.0!
- Now PHP 7.1 is required.
- Symfony 3.0+ or 4.0+ required.
- Make use of PHP 7 typehints when it's possible.
- Tests on Travis-CI now build ImageMagick 6 and 7 to check both versions.
Just a major release to advance in time.
If new ImageMagick options are added, they may be backported to v1, as of the new 1.x branch.
v1.6.1
Fixes
- Escape background option
v1.6.0
New features
Add support for -interlace
, -blur
and -gaussian-blur
options.
Added needed references and tests
v1.5.0
New features
- Use Symfony Process to exec command, and take care of IM6 and IM7 (Possible BC breaks, but there should be none actually)
- Add
__toString()
to Geometry
Adjustments
- Always use the bundled reference file instead of passing it as argument
- Improve constructor docs for Geometry
Fixes
- Add spaces after some command options
- Trim Geometry value when constructing it
Adapted tests to last updates, and remove useless ones
v1.4.2
New option
[4e99158] Added -strip
option
Docs of this option => http://www.imagemagick.org/script/command-line-options.php#strip
v1.4.1
v1.4.0
Add SF3 compatibility (still need review)
v1.3.0
This new release comes with a great Geometry
validation inside the new Geometry
class.
Geometry is really hard to validate in ImageMagick because it can have multiple forms, according to ImageMagick's documentation about Geometry.
Then, all current methods requiring a geometry parameter (resize
, crop
, etc.) now allow using a Geometry
instance to reinforce validation before executing the command (and catching the exceptions with a verbose explanation of what happened).
Also, the Geometry
class has an easy constructor with Geometry::createFromParameters
that allow specifying all parameters we need: width, height, X and Y offsets, and the aspect ratio option.
More than 700 tests were generated to be sure that the validation system is the same than the one present in ImageMagick itself.
Also, a big new feature about ::run()
method was introduced: you can now execute commands in three ways:
- Normally (nothing to do)
- In background (will append
> /dev/null 2>&1
to the command) - In debug mode (will append STDERR to STDOUT to retrieve the errors in the
CommandResponse::getContent()
method)
Just take a look at the RUN_*
constants in the Command
class.
New features
[ef52968] Start refactoring the Geometry validation
[044f25d] Many updates on the command class.
- Escape the geometry parameters (to avoid problems with "!" or "^" flags)
- Added "setEnv" for env vars, also added other IM commands: background, crop, extent.
- When using
run
, one can retrieve stderr in the output to watch for errors. - Removed many spaces form most commands.
[4b46ff0] Add new Geometry class to handle geometry use
[f1636aa] Created newRUN_
constants for running mode.Tests & CI
[a46c25d] Install ImageMagick manually to have latest version
[1f440a4] Show ImageMagick version in tests
[aad6c2b] Finalize geometry testing
[08576eb] Remove useless dev deps, optimize travis-ci
[510c3f5] Fixed tests
Code style
[738047a] Reorder methods to fit PSR style
v1.2.0
Transferred ownership.