1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-30 18:27:36 +01:00
intervention_image/README.md

54 lines
1.6 KiB
Markdown
Raw Normal View History

2014-05-15 17:16:05 +02:00
# Intervention Image
2014-09-02 20:30:01 +02:00
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.
2014-05-15 17:16:05 +02:00
[![Build Status](https://travis-ci.org/Intervention/image.png?branch=master)](https://travis-ci.org/Intervention/image)
## Requirements
- PHP >=5.3
- Fileinfo Extension
2014-05-18 11:50:13 +02:00
## Supported Image Libraries
- GD Library (>=2.0)
2014-11-13 12:37:56 +01:00
- Imagick PHP extension (>=6.5.7)
2014-05-15 17:16:05 +02:00
## Getting started
2014-05-21 11:46:42 +02:00
- [Installation](http://image.intervention.io/getting_started/installation)
- [Laravel Framework Integration](http://image.intervention.io/getting_started/installation#laravel)
2014-05-15 17:16:05 +02:00
- [Official Documentation](http://image.intervention.io/)
## Code Examples
```php
// open an image file
$img = Image::make('public/foo.jpg');
// 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 [documentation](http://image.intervention.io/) to learn more about Intervention Image.
2014-07-24 18:46:35 +02:00
## Contributing
Contributions to the Intervention Image library are welcome. Please note the following guidelines before submiting your pull request.
2014-10-23 20:51:03 +02:00
- Follow [PSR-2](http://www.php-fig.org/psr/psr-2/) coding standards.
2014-07-24 18:46:35 +02:00
- Write tests for new functions and added features
- API calls should work consistently with both GD and Imagick drivers
2014-05-15 17:16:05 +02:00
## License
Intervention Image is licensed under the [MIT License](http://opensource.org/licenses/MIT).
Copyright 2014 [Oliver Vogel](http://olivervogel.net/)