chore: use imagick for Intervention\Image
This commit is contained in:
parent
064b0967fc
commit
c01112a6c1
8
.github/workflows/CI.yml
vendored
8
.github/workflows/CI.yml
vendored
|
|
@ -26,7 +26,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
php-version: 8.3
|
php-version: 8.3
|
||||||
coverage: none
|
coverage: none
|
||||||
extensions: mbstring, dom, fileinfo, gd
|
extensions: mbstring, dom, fileinfo, gd, imagick
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
composer install --prefer-dist --no-progress
|
composer install --prefer-dist --no-progress
|
||||||
|
|
@ -54,14 +54,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php }}
|
php-version: ${{ matrix.php }}
|
||||||
coverage: none
|
coverage: none
|
||||||
extensions: mbstring, dom, fileinfo, sqlite, gd, zip
|
extensions: mbstring, dom, fileinfo, sqlite, gd, zip, imagick
|
||||||
- name: Setup PHP with Xdebug
|
- name: Setup PHP with Xdebug
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
if: matrix.php == '8.3'
|
if: matrix.php == '8.3'
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php }}
|
php-version: ${{ matrix.php }}
|
||||||
coverage: xdebug
|
coverage: xdebug
|
||||||
extensions: mbstring, dom, fileinfo, sqlite, gd, zip
|
extensions: mbstring, dom, fileinfo, sqlite, gd, zip, imagick
|
||||||
- name: Cache Composer dependencies
|
- name: Cache Composer dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -119,7 +119,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
php-version: 8.2
|
php-version: 8.2
|
||||||
coverage: none
|
coverage: none
|
||||||
extensions: mbstring, dom, fileinfo, sqlite, gd, zip
|
extensions: mbstring, dom, fileinfo, sqlite, gd, zip, imagick
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Cache Node dependencies
|
- name: Cache Node dependencies
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
"php": "^8.1",
|
"php": "^8.1",
|
||||||
"ext-ctype": "*",
|
"ext-ctype": "*",
|
||||||
"ext-gd": "*",
|
"ext-gd": "*",
|
||||||
|
"ext-imagick": "*",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-mbstring": "*",
|
"ext-mbstring": "*",
|
||||||
"ext-openssl": "*",
|
"ext-openssl": "*",
|
||||||
|
|
|
||||||
20
config/image.php
Normal file
20
config/image.php
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Image Driver
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Intervention Image supports "GD Library" and "Imagick" to process images
|
||||||
|
| internally. You may choose one of them according to your PHP
|
||||||
|
| configuration. By default PHP's "GD Library" implementation is used.
|
||||||
|
|
|
||||||
|
| Supported: "gd", "imagick"
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'driver' => 'imagick'
|
||||||
|
|
||||||
|
];
|
||||||
Loading…
Reference in New Issue
Block a user