Skip to content

Releases: ampedweb/laravel-glide-in-a-box

v1.0.0

23 Mar 15:08

Choose a tag to compare

What's Changed?

  • Remove reliance on league/glide-symfony package, adopt own custom response factory
  • Update ampedweb/glide-url-helper to v2.0

Full Changelog: v0.7.0...v1.0.0

v0.7.0

27 Apr 10:03

Choose a tag to compare

What's Changed

  • Use league/glide-symfony package instead of league/glide-laravel
  • Fixed Typo Error in GlideInABox Namespace by @TheCoderRaman in #27

New Contributors

Full Changelog: v0.6.1...v0.7.0

Holy racing exceptions, Batman!

30 Aug 09:20
8cf923a

Choose a tag to compare

This release includes a single hotfix:

  • Call the fileNotFound callback when either UnabletoRetrieveMetadata or Exception is thrown in GlideImageController::image

The sensible default responses release

31 Jul 09:20
a7d8a1c

Choose a tag to compare

New in this release:

  • GlideImageController::image() will now return a 404 when it can't find the requested image file.
    This replaces the previous behaviour, which was to allow the underlying FileNotFoundException to bubble up and crash your parent application in weird and wonderful ways.

  • You can override the default signature verification failure behaviour by setting a callback.
    This works by calling setSignatureFailedCallback() with a closure. For example:

    $this->app->get(GlideImageController::class)->setSignatureFailedCallback(
       function () {
          return;
       }
    );

    This will effectively disable the signature verification check by allowing execution to continue even if the verification fails.

  • You can override the default file not found behaviour by setting a callback.
    This works by calling setFileNotFoundCallback() with a closure. For example:

    $this->app->get(GlideImageController::class)->setFileNotFoundCallback(
     function () {
        return 'File not found';
     }
    );

    This will cause the "File not found" text to be returned instead of throwing a HttpNotFoundException

v0.5.1

13 Apr 09:27
4aa3bd8

Choose a tag to compare

Nothing's changed, except that we've dropped our dependency on phploc/phploc.

Update in confidence!

v0.5.0

14 Mar 14:45

Choose a tag to compare

Upgrading to use new version of ampedweb/glide-url-helper to 0.3 which includes league/glide v2.0.0
Full Changelog: v0.4.1...v0.5.0

v0.4

09 Sep 13:59
5f5023f

Choose a tag to compare

Remove need to call glide_url->url() to get the URL

This release removes the requirement to call glide_url->url() to obtain the
image URL.

For example, it is now possible to do the following:

{{ glide_url('image_filename')->width(250)->jpeg() }}
{{-- obtain a JPEG --}}

{{ glide_url('image_filename')->width(250)->png() }}
{{-- obtain a PNG --}}

Previously, this would have been necessary:

{{ glide_url('image_filename')->width(250)->jpeg()->url() }}
{{-- obtain a JPEG --}}

{{ glide_url('image_filename')->width(250)->png()->url() }}
{{-- obtain a PNG --}}

This update maintains the original behaviour so there is no BC break.

Fixing helper and service container bindings.

10 Jul 12:05

Choose a tag to compare

v0.3.1

Merge branch 'hotfix/servicecontainerbindings'

Refactoring internals to use external ampedweb/glide-url-helper package

04 Jul 16:02

Choose a tag to compare

0.3

Merge branch 'refactor/glide-url-helper-integration'

Fix flysystem config issue

22 May 15:38

Choose a tag to compare

Removing instantiation of "Local" flysystem from glideinabox.php config file