From 6f6631edd87fdc5dbcf82cb1f8c0595ee2a49657 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sat, 9 Dec 2023 20:19:42 +0100 Subject: [PATCH 1/6] Set local dev environment to the minimum required PHP version --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b17cf7c3..b0501fbc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM php:8-cli +FROM php:8.1-cli RUN apt update \ && apt install -y \ From 3230013930ff80acc441842c7d6503911b5a7ce7 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sun, 10 Dec 2023 17:28:44 +0100 Subject: [PATCH 2/6] Update issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..07f88ca6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,25 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**Code Example** +Code example to reproduce the behavior. + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Images** +If applicable, add problematic images or screenshots to help explain your problem. + +**Environment (please complete the following information):** + - PHP Version: + - OS: + - GD or Imagick: From db15ae46c27e228a48ad228ae6b89d8f633664ad Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sun, 10 Dec 2023 17:29:55 +0100 Subject: [PATCH 3/6] Update issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 07f88ca6..73638ae0 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -22,4 +22,5 @@ If applicable, add problematic images or screenshots to help explain your proble **Environment (please complete the following information):** - PHP Version: - OS: + - Intervention Image Version: - GD or Imagick: From 87693451a090e47d69b6781792cde07df3421e97 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sun, 10 Dec 2023 17:31:29 +0100 Subject: [PATCH 4/6] Update issue templates --- .github/ISSUE_TEMPLATE/feature_request.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..bbcbbe7d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. From f6e4d0dda4fda612c481a048e6bca33d8e475868 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Mon, 11 Dec 2023 14:36:52 +0100 Subject: [PATCH 5/6] Complete example code in readme --- readme.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 9d11f26c..ff7dba0a 100644 --- a/readme.md +++ b/readme.md @@ -33,6 +33,8 @@ documentation](https://image.intervention.io/v3/). ## Code Examples ```php +use Intervention\Image\ImageManager; + // create image manager with desired driver $manager = new ImageManager( new Intervention\Image\Drivers\Gd\Driver() @@ -87,4 +89,4 @@ If you discover any security related issues, please email oliver@intervention.io Intervention Image is licensed under the [MIT License](http://opensource.org/licenses/MIT). -Copyright 2020 [Oliver Vogel](http://intervention.io/) +Copyright 2023 [Oliver Vogel](http://intervention.io/) From 2622255af875e256bf52255a889362fe06b3ebf2 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Tue, 12 Dec 2023 18:45:54 +0100 Subject: [PATCH 6/6] Draw lines antialiased with gd driver --- src/Drivers/Gd/Modifiers/DrawLineModifier.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Drivers/Gd/Modifiers/DrawLineModifier.php b/src/Drivers/Gd/Modifiers/DrawLineModifier.php index abbfc66f..2d06131a 100644 --- a/src/Drivers/Gd/Modifiers/DrawLineModifier.php +++ b/src/Drivers/Gd/Modifiers/DrawLineModifier.php @@ -16,6 +16,7 @@ class DrawLineModifier extends AbstractDrawModifier public function apply(ImageInterface $image): ImageInterface { foreach ($image as $frame) { + imageantialias($frame->native(), true); imageline( $frame->native(), $this->drawable->start()->x(),