Skip to content

Releases: stubbles/stubbles-image

7.0.1 - Refinement

19 Feb 18:09
v7.0.1
a8aa0a3
Compare
Choose a tag to compare
  • Fixed return type of stubbles\img\Image::handle()
  • stubbles\img\Image::create() now throws a more specific stubbles\img\ImageCreationFailedwhich is an instance of \RuntimeException

7.0.0 - Resourcefulnes

26 Dec 20:37
v7.0.0
45ea71f
Compare
Choose a tag to compare

BC breaks

  • Raised minimum required PHP version to 8.2 and switched all resource type hints to GdImage
  • 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()
  • 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 returning void

6.2.0 - All the JP(E)Gs

26 Nov 12:59
Compare
Choose a tag to compare
  • 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\Image will 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

18 Nov 12:24
Compare
Choose a tag to compare

BC breaks

  • Added new method contentForDisplay($handle): string to interface stubbles\img\driver\ImageDriver
  • Changed signature of stubbles\img\driver\ImageDriver::display() to return type void

Other changes

  • Added stubbles\img\Image::contentForDisplay(): string to return image contents ready for display

6.0.0 - Going with the times

18 Nov 12:24
Compare
Choose a tag to compare

BC breaks

  • raised minimum required PHP version to 7.3

5.0.0 - Stay in line

31 Jul 14:04
Compare
Choose a tag to compare

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

31 Jul 13:50
Compare
Choose a tag to compare

BC breaks

  • removed stubbles\image\response, is now in stubbles/webapp-image
  • removed stubbles\img\Image::loadFromResource()
  • removed stubbles\img\ImageType, stubbles\img\Image now 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

31 Jul 13:50
Compare
Choose a tag to compare

BC breaks

  • removed namespace prefix net, base namespace is now stubbles\img only
  • api changes
    • renamed methods in stubbles\image\driver\ImageDriver:
      • getExtension() is now fileExtension()
      • getContentType() is now mimeType()
    • renamed methods in stubbles\image\driver\DummyImageDriver:
      • getLastStoredFileName() is now lastStoredFileName()
      • getLastStoredHandle() is now lastStoredHandle()
      • getLastDisplayedHandle() is now lastDisplayedHandle()
    • deprecated stubbles\img\Image::getName(), use stubbles\img\Image::fileName() instead, will be removed with 4.0.0
    • deprecated stubbles\img\Image::getType(), use stubbles\img\Image::type() instead, will be removed with 4.0.0
    • deprecated stubbles\img\Image::getHandle(), use stubbles\img\Image::handle() instead, will be removed with 4.0.0
    • deprecated stubbles\img\Image::getExtension(), use stubbles\img\Image::fileExtension() instead, will be removed with 4.0.0
    • deprecated stubbles\img\Image::getContentType(), use stubbles\img\Image::mimeType() instead, will be removed with 4.0.0

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

31 Jul 13:52
Compare
Choose a tag to compare
  • ensured that ext-gd is present

2.0.3 - Stay pure

31 Jul 13:48
Compare
Choose a tag to compare
  • ensured that response body is empty when image present so nothing gets send after image was sent