Skip to content

Releases: Orbitale/ImageMagickPHP

v2.0.1

09 Feb 09:43
Compare
Choose a tag to compare

Changelog for v2.0.1

  • Add -size option
  • Add output() alias to append file name to the end of the command
  • Add xc option to allow creating images with "X window color", like xc:none by default for transparent images

v2.0.0

20 Jan 13:53
Compare
Choose a tag to compare

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

19 Jan 16:05
Compare
Choose a tag to compare

Fixes

  • Escape background option

v1.6.0

10 Feb 13:34
Compare
Choose a tag to compare

New features

Add support for -interlace, -blur and -gaussian-blur options.

Added needed references and tests

v1.5.0

02 Feb 21:04
Compare
Choose a tag to compare

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

01 Feb 14:39
Compare
Choose a tag to compare

New option

[4e99158] Added -strip option

Docs of this option => http://www.imagemagick.org/script/command-line-options.php#strip

v1.4.1

15 Apr 11:38
Compare
Choose a tag to compare

New option!

[a897116] Add the -rotate command-line option (closes #2 )

v1.4.0

08 Mar 17:41
Compare
Choose a tag to compare

Add SF3 compatibility (still need review)

v1.3.0

03 Sep 13:55
Compare
Choose a tag to compare

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 new RUN_ 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

07 Apr 09:05
Compare
Choose a tag to compare

Transferred ownership.