File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,8 @@ The `Image` class is built to work with multiple image processing backends.
2222 - Cons: May lack advanced features and performance compared to Vips and Imagick.
2323- ** VIPS:** A high-performance image processing library that is not available by default in PHP installations. It is
2424 recommended for users who require high-speed image processing and have the VIPS extension installed.
25- - Pros: Known for its speed and efficiency, especially for large images.
26- - Cons: May require additional installation steps but provides excellent performance.
27-
28- ** To use the VIPS driver:**
29- 1 . Install ` libvips ` on your machine by following the [ libvips install guide] ( https://www.libvips.org/install.html ) .
30- 2 . Install the VIPS PHP driver using Composer:
31- ``` bash
32- composer require rokka/imagine-vips
33- ```
25+ - Pros: Known for its speed and memory efficiency, especially for large images.
26+ - Cons: May not have all methods bound in PHP yet.
3427
3528## Setting the image driver
3629
@@ -40,7 +33,7 @@ IMAGICK, but you can change it to GD or VIPS based on your requirements.
4033``` php
4134use Codewithkyrian\Transformers\Transformers;
4235
43- Transformers::setup ()-> setImageDriver(ImageDriver::GD );
36+ Transformers::setup()->setImageDriver(ImageDriver::VIPS );
4437```
4538
4639If you're using the ` Image ` class directly, you can set the image driver using the ` setDriver() ` method.
You can’t perform that action at this time.
0 commit comments