1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-24 14:32:52 +02:00

16 Commits

Author SHA1 Message Date
Oliver Vogel
5f3cc8a7a4 Add type hints in tests 2025-06-01 07:57:46 +02:00
Oliver Vogel
58f0afd3c7 Optimize & Refactor Crop- and ResizeCanvasModifiers (#1418)
* Refactor and simplify CropModifier::class
* Refactor and simplify ResizeCanvasModifier::class
2025-01-12 08:24:23 +01:00
Oliver Vogel
1c68e5fdf4 Fix incorrect color results after color reduction (#1410)
* Add tests to verify issue 1409
* Enable GD's ColorProcessor to resolve array color format
* Fix bug when reading colors from palette GDImage
* Add detailed type hint
2025-01-04 08:31:37 +01:00
Oliver Vogel
ca067a8fbb Add tests 2024-12-28 10:15:24 +01:00
Oliver Vogel
8230387f14 Fix bug in PadModifier (#1408) 2024-12-27 15:53:08 +01:00
Oliver Vogel
ed6ddf4aa7 Fix discarded alpha channel of watermark in PlaceModifier (#1368) 2024-06-12 17:10:49 +02:00
gammalogic
216f4cffb4 Add bezier curve drawing tool 2024-06-09 07:55:52 +02:00
Oliver Vogel
a566769f21 Fix bug in cover modifiers
See: https://github.com/Intervention/image/issues/1359
2024-06-06 17:38:32 +02:00
Oliver Vogel
2e0cbf2408 Add tolerance to test 2024-05-05 11:49:04 +02:00
Oliver Vogel
41f2c96dc8 Refactor & fix bug in BaseTestCase::assertColor() 2024-05-05 11:48:13 +02:00
Oliver Vogel
ab403d98c6 Fix ignored opacity in Imagick's PlaceModifer for certain files. (#1346)
* Add tests to reproduce bug in PlaceModifier
* Fix bug in PlaceModifier
* Add tolerance parameter to BaseTestCase::assertColor()
2024-05-05 11:28:01 +02:00
Oliver Vogel
f035f7d516 Trim Modifier (#1322)
Co-authored-by: Sibin Grasic <sibin.grasic@oblak.studio>
2024-03-25 19:46:16 +01:00
Oliver Vogel
7f4ff15d51 Improve Driver Specializing Process (#1315)
Streamline driver specializing process of analyzers, modifers, encoders and decoders.
2024-03-23 08:08:41 +01:00
Oliver Vogel
03281ba995 Rename test functions 2024-03-10 10:13:45 +01:00
Oliver Vogel
67fde5f87e Restructure test folders & refactor test traits 2024-03-10 10:00:06 +01:00
Oliver Vogel
dcc95b8299 PHPUnit 10 Migration (#1302)
* Bump PHPUnit dependencies

* Set return type of base TestCase methods

From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html

* Ignore PHPUnit cache folder

* Adopt PHP attributes in test classes

* Declare data providers as `static`

* Add return types to test methods

* Define test classes as `final`

* Migrate phpunit.xml to phpunit 10

* Correct phpunit attribute class name

* Rename base test class

* Restructure test folders

* Fix test image paths

* Only set rules for php files in .editorconfig

* Remove php unit flag in local test env

---------

Co-authored-by: Shift <shift@laravelshift.com>
2024-02-28 16:16:23 +01:00