As slightly different results can occur in different environments
with results of imageftbbox and roundings, a range is checked
instead of a fixed value.
Adds the possibility to draw text with an outline stroke effect. The color and width of the outline can be specified.
During development, it was noticed that Imagick can handle the effect natively, but always draws it in the middle of the border. As there is currently no option to change this, the same trick was used that was already used for the implementation with the GD library.
This "compound" method first draws the outline several times with an offset before the actual text is placed over it.
However, this has the disadvantage that no transparent colors can be used if the stroke/outline effect is active as the would superimpose each other.
---------
Co-authored-by: MaximusLight <maximuslight7@gmail.com>
Co-authored-by: Oliver Vogel <oliver@olivervogel.com>
Co-authored-by: Amowogbaje Gideon <amowogbajegideon@gmail.com>
* 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>