TODOs
- Add testing
- Make a file under tests/ that mocks out to check for the options
Extend usage to other methods if they allow options(Out of scope)Move key into constant(Obsolete, removed overcomplexity of a nested array)Update documentation- Read defaults from config if defined (leave current values as fallback)
- Change the options in
Intervention/Image/AbstractDecoder.php
initFromUrl()
to be optionally set inconfig/config.php
.
- Change the options in
- Define if needed on Commands and how to pass it from CLI
- Task unclear. Ignore?
Remember your job is to make incremental progress, break the task into smaller tasks, or finish something in 15 minutes, then pass it along to the next contributor. No responsibility, only fun.
If you don't finish, add your next task to the readme.md. When you're done make a pull request to the repo
- Add additionalOptions in the call chain for initUrl as optional
Email with questions
Intervention Image is a PHP image handling and manipulation library providing an easier and expressive way to create, edit, and compose images. The package includes ServiceProviders and Facades for easy Laravel integration.
- PHP >=5.4
- Fileinfo Extension
- GD Library (>=2.0)
- Imagick PHP extension (>=6.5.7)
// open an image file
$img = Image::make('public/foo.jpg');
// you can also pass additional headers options for an url
$additionalOptions['http']['headers'] = "Accept: image/webp";
$img = Image::make($url, $additionalOptions);
// resize image instance
$img->resize(320, 240);
// insert a watermark
$img->insert('public/watermark.png');
// save image in desired format
$img->save('public/bar.jpg');
Refer to the official documentation to learn more about Intervention Image.
Contributions to the Intervention Image library are welcome. Please note the following guidelines before submitting your pull request.
- Follow PSR-2 coding standards.
- Write tests for new functions and added features
- API calls should work consistently with both GD and Imagick drivers
Intervention Image is licensed under the MIT License.
Copyright 2017 Oliver Vogel