Skip to content

code-relay-io/image

 
 

Repository files navigation

Task # 2 3 4

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 in config/config.php.
  • Define if needed on Commands and how to pass it from CLI
    • Task unclear. Ignore?

Task # 1

Intervention#1077

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

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.

Latest Version Build Status Monthly Downloads

Requirements

  • PHP >=5.4
  • Fileinfo Extension

Supported Image Libraries

  • GD Library (>=2.0)
  • Imagick PHP extension (>=6.5.7)

Getting started

Code Examples

// 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.

Contributing

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

License

Intervention Image is licensed under the MIT License.

Copyright 2017 Oliver Vogel

Packages

No packages published

Languages

  • PHP 100.0%