Releases: mirko-pagliai/cakephp-thumber
Releases · mirko-pagliai/cakephp-thumber
1.5.2
- fixed little bug for PHP 5.6.
1.5.1
- added
ThumbCreator::getUrl()
method; - added
getThumbCreatorInstance()
andgetThumbCreatorInstanceWithSave()
methods to theThumber\TestSuite\TestCase
class. This simplifies tests.
1.5.0
- the plugin has been migrated to CakePHP 3.6;
- added
TestCase::skipIfDriverIs()
method; ThumbTrait
becomesThumbsPathTrait
and it has no moregetDriver()
,
getExtension()
andgetUrl()
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 withRuntimeException
.
1.4.1
ThumbNotFoundException
extends theRuntimeException
and now is located
below theThumber\Http\Exception
namespace. This ensures compability with
CakePHP 3.6.- removed
assertFileExtension()
,assertImageSize()
andassertMime()
methods provided byThumber\TestSuite\TestCase
class.
1.4.0
- 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 theTHUMBER_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
- added
ThumbCreator::resizeCanvas()
method; - added
ThumbHelper::resizeCanvas()
andThumbHelper::resizeCanvasUrl()
methods.
Thanks to @BernardTeske
1.3.0
- 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
andThumbShell
classes; resolveFilePath()
method moved fromThumbCreator
toThumbTrait
, because
this method can be used in different contexts.
1.2.0
- updated for intervention/image 2.4;
- some little fixes. This package requires at least CakePHP 3.4.
1.1.1
- fixed bug when using similar format name, , as
jpeg
ortif
; - added
TestCase::assertFileExtension()
andTestCase::assertThumbPath()
methods; - added
ThumbTrait
; - added
Thumber\TestSuite\IntegrationTestCase
class; - removed
thumbUrl()
global function. Use insteadThumbTrait::getUrl()
; - significantly improved and simplified all tests;
- the MIT license has been applied.
1.1.0
- configuration parameters have the name of the plugin (
Thumber
) as prefix. So
now they areThumber.driver
andThumber.target
; - the target directory is created automatically, if it does not exist;
- added
rtr()
global function; - added
THUMBER
constant.