Skip to content

Releases: BKWLD/croppa

Croppa::delete() now correctly deletes crops

14 Apr 17:30
Compare
Choose a tag to compare
  • Croppa::delete() was intended to delete the src and crops. This restores this functionality (#83)
  • Fixes the redirect for remote crops
  • Throwing a custom exception if the crop already exists (#84)
  • More docs

Fixing the facade's accessor reference

13 Apr 20:50
Compare
Choose a tag to compare
Merge pull request #82 from sdebacker/patch-1

Wrong service name in Facade

4.0

13 Apr 18:17
Compare
Choose a tag to compare
4.0

Flysystem support

In addition to the src_dir being a local path, it can also be an IoC binding name to a Flysystem instance. Thus, your src images (and your crops) can be located on remote disks like S3, Dropbox, FTP, src.

Configuration

With this release major changes were made to the config file as part of the transition to Flysystem and to make the configuration more explicit / less confusing. For instance, the src_dir is no longer an array of paths, there can be only one source. Also, a crops_dir allows you to store the crops in a different directory than the source directory. Read the config file for docs on each option.

Fully dependency injected

The code architecture was rewritten from a single class to multiple that get instantiated using dependency injection through the Laravel container. This will make adding future tests and functionality easier and let people subclass and extend Croppa.

Support `route:cache` to work in L5

13 Apr 16:02
Compare
Choose a tag to compare
  • #81 - Route handling is done with a Controller rather than a closure so applications that cache routes will not get a fatal error
  • Fixing composer.json so that L4 continues to be supported

Fixing image output bug on new service providers

18 Feb 16:23
Compare
Choose a tag to compare

Adding support for Laravel 5

17 Feb 22:55
Compare
Choose a tag to compare

Smarter regex and more tests

11 Feb 16:59
Compare
Choose a tag to compare
  • #69 If src image doesn't exist, return a 404 exception.
  • #58 Adding unit tests for generate()
  • #13 Restrict the route listener regex to just handle images found in a src_dir
  • Adding other unit tests and making many private methods public
  • Dropping Travis CI support for PHP 5.3 and adding PHP 5.6
  • Croppa will regenerate the cropped version of files if generate() is called for a path that already exists
  • generate() no longer outputs the image when it finishes. Instead, it returns a Bkwld\Croppa\Image object with a show() method that will echo the binary image data

Bug fixes and tweaks

21 Jan 16:34
Compare
Choose a tag to compare
  • Passing through the $src if no width / height are set
  • #67
  • #64

Append the host to passed through srcs

13 Oct 16:37
Compare
Choose a tag to compare
3.4.2

Append the host to passed through srcs

Passthrough the src if there is no width or height

13 Oct 16:18
Compare
Choose a tag to compare
3.4.1

Pass through the src if there is no width or height