Releases: stubbles/stubbles-image
Releases · stubbles/stubbles-image
8.0.0 - The real eight
7.0.1 - Refinement
- Fixed return type of
stubbles\img\Image::handle() stubbles\img\Image::create()now throws a more specificstubbles\img\ImageCreationFailedwhich is an instance of\RuntimeException
7.0.0 - Resourcefulnes
BC breaks
- Raised minimum required PHP version to 8.2 and switched all
resourcetype hints toGdImage - Image instances can't be created with
new Image()any more:- either load an existing image with
Image::load() - or create a new image with
Image::create()
- either load an existing image with
- Requires PHP extension fileinfo
- Automatic driver selection for images is now based on mimetype of actual file if file exists
stubbles\img\Driver::display()is now defined as returningvoid
6.2.0 - All the JP(E)Gs
- Added support for jpeg images with new
stubbles\img\driver\JpegDriver - Added more details to exception messages when storing or loading an image fails
- Passing no driver to constructor of
stubbles\img\Imagewill now select driver based on extension in filename, and fallback to png when extension is unknown or not present
6.1.0 - Content is King
BC breaks
- Added new method
contentForDisplay($handle): stringto interfacestubbles\img\driver\ImageDriver - Changed signature of
stubbles\img\driver\ImageDriver::display()to return typevoid
Other changes
- Added
stubbles\img\Image::contentForDisplay(): stringto return image contents ready for display
6.0.0 - Going with the times
BC breaks
- raised minimum required PHP version to 7.3
5.0.0 - Stay in line
BC breaks
- raised minimum required PHP version to 7.0.0
- introduced scalar type hints and strict type checking
- removed
stubbles\image\driver\DummyImageDriver::reset(), not required
4.0.0 - Break free
BC breaks
- removed
stubbles\image\response, is now in stubbles/webapp-image - removed
stubbles\img\Image::loadFromResource() - removed
stubbles\img\ImageType,stubbles\img\Imagenow works directly with drivers - removed all methods deprecated with 3.0.0 (see below)
Other changes
- removed dependency to stubbles/core 5.x and stubbles/webapp-core 5.x
3.0.0 - I don't get this
BC breaks
- removed namespace prefix
net, base namespace is nowstubbles\imgonly - api changes
- renamed methods in
stubbles\image\driver\ImageDriver:getExtension()is nowfileExtension()getContentType()is nowmimeType()
- renamed methods in
stubbles\image\driver\DummyImageDriver:getLastStoredFileName()is nowlastStoredFileName()getLastStoredHandle()is nowlastStoredHandle()getLastDisplayedHandle()is nowlastDisplayedHandle()
- deprecated
stubbles\img\Image::getName(), usestubbles\img\Image::fileName()instead, will be removed with 4.0.0 - deprecated
stubbles\img\Image::getType(), usestubbles\img\Image::type()instead, will be removed with 4.0.0 - deprecated
stubbles\img\Image::getHandle(), usestubbles\img\Image::handle()instead, will be removed with 4.0.0 - deprecated
stubbles\img\Image::getExtension(), usestubbles\img\Image::fileExtension()instead, will be removed with 4.0.0 - deprecated
stubbles\img\Image::getContentType(), usestubbles\img\Image::mimeType()instead, will be removed with 4.0.0
- renamed methods in
Other changes
- upgraded to stubbles/core 4.x & stubbles/webapp-core 4.x
- added
stubbles\img\Image::loadFromResource() - added
stubbles\img\response\ImageFormatter
2.0.4 - Transparency
- ensured that ext-gd is present