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.