Skip to content

Releases: mirko-pagliai/cakephp-thumber

1.5.2

19 Jun 12:37
eea46a4
Compare
Choose a tag to compare
  • fixed little bug for PHP 5.6.

1.5.1

26 Apr 11:52
9ad513f
Compare
Choose a tag to compare
  • added ThumbCreator::getUrl() method;
  • added getThumbCreatorInstance() and getThumbCreatorInstanceWithSave()
    methods to the Thumber\TestSuite\TestCase class. This simplifies tests.

1.5.0

20 Apr 12:07
c1516a8
Compare
Choose a tag to compare
  • the plugin has been migrated to CakePHP 3.6;
  • added TestCase::skipIfDriverIs() method;
  • ThumbTrait becomes ThumbsPathTrait and it has no more getDriver(),
    getExtension() and getUrl() methods;
  • the ThumbCreator::getDefaultSaveOptions() method now can take the $path
    optional argument;
  • removed ThumbTrait::getSupportedFormats() method, added
    ThumbManager::$supportedFormats static property;
  • InternalErrorException exception has been replaced with RuntimeException.

1.4.1

19 Apr 12:28
4a8f370
Compare
Choose a tag to compare
  • ThumbNotFoundException extends the RuntimeException and now is located
    below the Thumber\Http\Exception namespace. This ensures compability with
    CakePHP 3.6.
  • removed assertFileExtension(), assertImageSize() and assertMime()
    methods provided by Thumber\TestSuite\TestCase class.

1.4.0

03 Apr 13:15
07b198b
Compare
Choose a tag to compare
  • removed all methods provided previously by the ThumbHelper. These methods
    are now called dynamically by the __call() magic method;
  • tests have been simplified. The library to be tested is set by the
    tests/bootstrap.php file, using the THUMBER_DRIVER environment variable.
    By default, Imagick is used;
  • full support for Windows, added tests for Appveyor;
  • added Thumber\TestSuite\TestCase::assertThumbUrl() method;
  • now it uses the mirko-pagliai/php-tools package. This also replaces
    mirko-pagliai/reflection.

1.3.1

16 Feb 12:09
8bcc7e7
Compare
Choose a tag to compare
  • added ThumbCreator::resizeCanvas() method;
  • added ThumbHelper::resizeCanvas() and ThumbHelper::resizeCanvasUrl() methods.

Thanks to @BernardTeske

1.3.0

29 Dec 14:35
6f3d09f
Compare
Choose a tag to compare
  • the name of the thumbnails (when automatically generated) now contains a
    prefix with the checksum of the path of the original image and a suffix with
    the checksum of all the arguments used to create the thumbnail. Using the
    prefix of a thumbnail, it will be possible to identify the original image
    from which it was generated;
  • the Last-Modified header is set up and sent to the client. It indicates the
    date and time at which the thumbnail file was modified for the last time;
  • added ThumbManager and ThumbShell classes;
  • resolveFilePath() method moved from ThumbCreator to ThumbTrait, because
    this method can be used in different contexts.

1.2.0

02 Sep 10:53
Compare
Choose a tag to compare
  • updated for intervention/image 2.4;
  • some little fixes. This package requires at least CakePHP 3.4.

1.1.1

10 Aug 17:27
Compare
Choose a tag to compare
  • fixed bug when using similar format name, , as jpeg or tif;
  • added TestCase::assertFileExtension() and TestCase::assertThumbPath()
    methods;
  • added ThumbTrait;
  • added Thumber\TestSuite\IntegrationTestCase class;
  • removed thumbUrl() global function. Use instead ThumbTrait::getUrl();
  • significantly improved and simplified all tests;
  • the MIT license has been applied.

1.1.0

01 Jun 18:28
Compare
Choose a tag to compare
  • configuration parameters have the name of the plugin (Thumber) as prefix. So
    now they are Thumber.driver and Thumber.target;
  • the target directory is created automatically, if it does not exist;
  • added rtr() global function;
  • added THUMBER constant.