Compare commits

..

3 Commits

Author SHA1 Message Date
cd99a516b8
Updated typo in README.md
Fixed a typographical error in the README file. The name of the image processing library was corrected from 'intervetion/image' to 'intervention/image'.
2024-09-16 15:46:47 +02:00
44f474ecd8
Updated dependencies and switched image processing extension
The project's dependencies have been updated to their latest versions. This includes updates to the Intervention Image library, Symfony HTTP Foundation, and several Symfony Polyfill libraries. The image processing extension has also been switched from Imagick to GD for better compatibility and performance. Additionally, the Composer plugin API version has been updated.
2024-09-16 15:46:25 +02:00
fc36888b7d
Updated image driver in ImageManager
The image driver used in the ImageManager instance has been switched from Imagick to Gd. This change should not affect any existing functionality but may improve performance and compatibility with different server setups.
2024-09-16 15:45:47 +02:00
4 changed files with 36 additions and 32 deletions

View File

@ -1,7 +1,7 @@
# Image proxy
(c) 2024- Jeroen De Meerleer <me@jeroened.be>
Small image proxy based on [intervetion/image](https://image.intervention.io) to resize a image, create a border and fill the background
Small image proxy based on [intervention/image](https://image.intervention.io) to resize a image, create a border and fill the background
## Installation

View File

@ -2,7 +2,7 @@
"require": {
"intervention/image": "^3.7",
"symfony/http-foundation": "^6.4",
"ext-imagick": "*",
"ext-gd": "*",
"ext-fileinfo": "*"
}
}

62
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "979d29e98306f7542a4fe457b928ce71",
"content-hash": "fbf407a0f0c0474da78f5bc84619df73",
"packages": [
{
"name": "intervention/gif",
@ -72,16 +72,16 @@
},
{
"name": "intervention/image",
"version": "3.7.2",
"version": "3.8.0",
"source": {
"type": "git",
"url": "https://github.com/Intervention/image.git",
"reference": "5451ff9f909c2fc836722e5ed6831b9f9a6db68c"
"reference": "1786ad5e1789050939d73cd195de4b8eaeeb34ed"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Intervention/image/zipball/5451ff9f909c2fc836722e5ed6831b9f9a6db68c",
"reference": "5451ff9f909c2fc836722e5ed6831b9f9a6db68c",
"url": "https://api.github.com/repos/Intervention/image/zipball/1786ad5e1789050939d73cd195de4b8eaeeb34ed",
"reference": "1786ad5e1789050939d73cd195de4b8eaeeb34ed",
"shasum": ""
},
"require": {
@ -128,7 +128,7 @@
],
"support": {
"issues": "https://github.com/Intervention/image/issues",
"source": "https://github.com/Intervention/image/tree/3.7.2"
"source": "https://github.com/Intervention/image/tree/3.8.0"
},
"funding": [
{
@ -138,9 +138,13 @@
{
"url": "https://github.com/Intervention",
"type": "github"
},
{
"url": "https://ko-fi.com/interventionphp",
"type": "ko_fi"
}
],
"time": "2024-07-05T13:35:01+00:00"
"time": "2024-08-16T14:57:26+00:00"
},
{
"name": "symfony/deprecation-contracts",
@ -211,16 +215,16 @@
},
{
"name": "symfony/http-foundation",
"version": "v6.4.8",
"version": "v6.4.10",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-foundation.git",
"reference": "27de8cc95e11db7a50b027e71caaab9024545947"
"reference": "117f1f20a7ade7bcea28b861fb79160a21a1e37b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/27de8cc95e11db7a50b027e71caaab9024545947",
"reference": "27de8cc95e11db7a50b027e71caaab9024545947",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/117f1f20a7ade7bcea28b861fb79160a21a1e37b",
"reference": "117f1f20a7ade7bcea28b861fb79160a21a1e37b",
"shasum": ""
},
"require": {
@ -268,7 +272,7 @@
"description": "Defines an object-oriented layer for the HTTP specification",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-foundation/tree/v6.4.8"
"source": "https://github.com/symfony/http-foundation/tree/v6.4.10"
},
"funding": [
{
@ -284,24 +288,24 @@
"type": "tidelift"
}
],
"time": "2024-05-31T14:49:08+00:00"
"time": "2024-07-26T12:36:27+00:00"
},
{
"name": "symfony/polyfill-mbstring",
"version": "v1.30.0",
"version": "v1.31.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c"
"reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fd22ab50000ef01661e2a31d850ebaa297f8e03c",
"reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341",
"reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341",
"shasum": ""
},
"require": {
"php": ">=7.1"
"php": ">=7.2"
},
"provide": {
"ext-mbstring": "*"
@ -348,7 +352,7 @@
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.30.0"
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0"
},
"funding": [
{
@ -364,24 +368,24 @@
"type": "tidelift"
}
],
"time": "2024-06-19T12:30:46+00:00"
"time": "2024-09-09T11:45:10+00:00"
},
{
"name": "symfony/polyfill-php83",
"version": "v1.30.0",
"version": "v1.31.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php83.git",
"reference": "dbdcdf1a4dcc2743591f1079d0c35ab1e2dcbbc9"
"reference": "2fb86d65e2d424369ad2905e83b236a8805ba491"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/dbdcdf1a4dcc2743591f1079d0c35ab1e2dcbbc9",
"reference": "dbdcdf1a4dcc2743591f1079d0c35ab1e2dcbbc9",
"url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/2fb86d65e2d424369ad2905e83b236a8805ba491",
"reference": "2fb86d65e2d424369ad2905e83b236a8805ba491",
"shasum": ""
},
"require": {
"php": ">=7.1"
"php": ">=7.2"
},
"type": "library",
"extra": {
@ -424,7 +428,7 @@
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-php83/tree/v1.30.0"
"source": "https://github.com/symfony/polyfill-php83/tree/v1.31.0"
},
"funding": [
{
@ -440,7 +444,7 @@
"type": "tidelift"
}
],
"time": "2024-06-19T12:35:24+00:00"
"time": "2024-09-09T11:45:10+00:00"
}
],
"packages-dev": [],
@ -450,9 +454,9 @@
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
"ext-imagick": "*",
"ext-gd": "*",
"ext-fileinfo": "*"
},
"platform-dev": [],
"plugin-api-version": "2.3.0"
"plugin-api-version": "2.6.0"
}

View File

@ -11,7 +11,7 @@ use Intervention\Image\ImageManager;
use Symfony\Component\HttpFoundation\Response;
// create an image manager instance with favored driver
$manager = new ImageManager(\Intervention\Image\Drivers\Imagick\Driver::class);
$manager = new ImageManager(\Intervention\Image\Drivers\Gd\Driver::class);
if(php_sapi_name() == 'cli') {
$args = NULL;
parse_str($argv[1], $args);