- requires at least PHP 8.1, CakePHP 5.0 and PHPUnit 10;
- added tests for PHP 8.3.
- removed some exception classes already deprecated or scheduled for deprecation.
- no longer needs the
me-tools
package; - no longer uses the
Exceptionist
class; - added tests for PHP 8.2.
- updated for
me-tools
2.24.
- the
ThumbCreator
class has been revised; ThumberCreator::getImageInstance()
andThumberCreator::save()
methods have been, because they would now coincide with the methods of the extended class;- all methods of
TestCase
class have been moved to the newTestTrait
; - minor code, test, and documentation improvements;
- added tests for
ThumbManager
class.
- updated for CakePHP 4.4;
- little fixes for
phpstan
,psalm
and for thecomposer.json
file.
- ready for CakePHP 4.4.
- requires at least PHP 7.4;
- little fixes.
- added tests for PHP 8.1;
- little fixes.
- fixed the bootstrap.
- ready for CakePHP 4.3. The
ThumbnailMiddleware
was moved fromThumber\Cake\Routing\Middleware
toThumber\Cake\Middleware
.
- migration to github actions.
- updated for
php-thumber
1.4; - improvement of function descriptions and tags.
- updated for
php-thumber
1.3; - ready for
php
8; - extensive improvement of function descriptions and tags. The level of
phpstan
has been raised.
- updated for
php-tools
1.4.5; - added
phpstan
, so fixed some code.
- updated for
me-tools
2.19.7 andphp-thumber
1.2.
- fixed locales and added tests.
- updated for
cakephp
4 andphpunit
8.
- little fixes;
- APIs are now generated by
phpDocumentor
and no longer byapigen
.
- much of the code will be moved into the
php-thumber
package, so that it becomes a php library independent from CakePHP. This plugin will continue to exist and all classes and methods will remain unchanged, but it will only include the code closely related to CakePHP (commands, helpers, middlewares, etc); - the namespace prefix is now
Thumber\Cake
and no longerThumber
; - the
ThumbsPathTrait
no longer exists. ThegetPath()
method no longer exists, use instead theTHUMBER_TARGET
constant. TheresolveFilePath()
method has been moved to theThumbManager
class.
- it self-determines which driver to use, if not set manually.
ThumbCreator
can throw aBadMethodCallException
or aNotWritableException
;ThumbHelper
throws aBadMethodCallException
if a method doesn't exist;- fixed little bug for
ThumbsPathTrait::getPath()
method.
- fixed little bug for
ThumbsPathTrait::resolveFilePath()
method; - added tests for lower dependencies;
- no longer uses
File
andFolder
classes.
- little fixes.
- fixed little bug for
composer.json
.
- little fixes;
- updated for
php-tools
1.2.
- renamed commands. Now they are
thumber.clear
andthumber.clear_all
; - requires
me-tools
package for dev; - removed
ConsoleIntegrationTestTrait
, because it is now sufficient to use the same trait provided byme-tools
; - updated for CakePHP 3.7.1 and
php-tools
1.1.12; - added API.
ThumberShell
has been replaced with console commands. Every method of the previous class is now aCommand
class;ConsoleIntegrationTestCase
andIntegrationTestCase
have been replaced byConsoleIntegrationTestTrait
andIntegrationTestTrait
;TestCaseTrait
has been removed and its methods moved toTestCase
;- removed
THUMBER
constant; - updated for CakePHP 3.7.
- added
ConsoleIntegrationTestCase
class; - updated for CakePHP 3.7.
- the plugin now uses the
ThumbnailMiddleware
instead of a controller to "serve" thumbnails. TheThumbsController
has therefore been deleted; - updated for CakePHP 3.6 and 3.7;
- fixed little bug for PHP 5.6.
- fixed little bug for PHP 5.6.
- added
ThumbCreator::getUrl()
method; - added
getThumbCreatorInstance()
andgetThumbCreatorInstanceWithSave()
methods to theThumber\TestSuite\TestCase
class. This simplifies tests.
- 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, addedThumbManager::$supportedFormats
static property; InternalErrorException
exception has been replaced withRuntimeException
.
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.
- 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 replacesmirko-pagliai/reflection
.
- added
ThumbCreator::resizeCanvas()
method; - added
ThumbHelper::resizeCanvas()
andThumbHelper::resizeCanvasUrl()
methods.
- 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.
- updated for intervention/image 2.4;
- some little fixes. This package requires at least CakePHP 3.4.
- 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.
- 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.
- added
ThumbNotFoundException
class. This exception is thrown when you request a thumb that is not available; - methods that have been deprecated with CakePHP 3.4 have been replaced;
- updated for CakePHP 3.4.
- little code fixes;
- improved tests.
- support for
bmp
,ico
,psd
andtiff
formats; - checks for formats supported by GD driver.
- added
fit()
method forThumbCreator
andThumbHelper
classes; - the
save()
method can save thumbnails with a different format; - the
save()
method has thequality
option (default: 90); - by default, the
ThumbHelper
returs "full base" URLs; - by default, the
ThumbHelper
creates jpg thumbnails.
- first release.