Releases: ampedweb/laravel-glide-in-a-box
v1.0.0
v0.7.0
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
- @TheCoderRaman made their first contribution in #27
Full Changelog: v0.6.1...v0.7.0
Holy racing exceptions, Batman!
This release includes a single hotfix:
- Call the fileNotFound callback when either
UnabletoRetrieveMetadataorExceptionis thrown inGlideImageController::image
The sensible default responses release
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 underlyingFileNotFoundExceptionto 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 callingsetSignatureFailedCallback()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 callingsetFileNotFoundCallback()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
v0.5.0
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
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.
v0.3.1 Merge branch 'hotfix/servicecontainerbindings'
Refactoring internals to use external ampedweb/glide-url-helper package
0.3 Merge branch 'refactor/glide-url-helper-integration'
Fix flysystem config issue
Removing instantiation of "Local" flysystem from glideinabox.php config file