mirror of
https://github.com/Intervention/image.git
synced 2025-08-10 16:04:04 +02:00
Edit readme
This commit is contained in:
@@ -6,11 +6,11 @@
|
|||||||
[](https://packagist.org/packages/intervention/image/stats)
|
[](https://packagist.org/packages/intervention/image/stats)
|
||||||
|
|
||||||
Intervention Image is a **image handling and manipulation library written in
|
Intervention Image is a **image handling and manipulation library written in
|
||||||
PHP** providing an easier and expressive way to create, edit, and compose
|
PHP** providing an easy and expressive way to create, edit, and compose
|
||||||
images. GD library or Imagick can be selected as the base layer for all
|
images. GD library or Imagick can be selected as the base layer for all
|
||||||
operations.
|
operations.
|
||||||
|
|
||||||
- Simple interface for common tasks
|
- Simple interface for common image manipulation tasks
|
||||||
- Interchangable driver architecture
|
- Interchangable driver architecture
|
||||||
- Support for animated images
|
- Support for animated images
|
||||||
- Framework-agnostic
|
- Framework-agnostic
|
||||||
@@ -32,7 +32,9 @@ documentation](https://image.intervention.io/v3/).
|
|||||||
|
|
||||||
```php
|
```php
|
||||||
// create image manager with desired driver
|
// create image manager with desired driver
|
||||||
$manager = new ImageManager(driver: 'gd');
|
$manager = new ImageManager(
|
||||||
|
new Intervention\Image\Drivers\Gd\Driver()
|
||||||
|
);
|
||||||
|
|
||||||
// open an image file
|
// open an image file
|
||||||
$image = $manager->read('images/example.gif');
|
$image = $manager->read('images/example.gif');
|
||||||
|
Reference in New Issue
Block a user