1
0
mirror of https://github.com/Intervention/image.git synced 2025-07-31 02:50:13 +02:00
Commit Graph

1700 Commits

Author SHA1 Message Date
Oliver Vogel
6e104b6594 Add ability to read Imagick or GDImage directly (#1329) 2024-04-10 15:17:36 +02:00
Oliver Vogel
2439fd80cb Fix documentation links 2024-04-01 09:27:47 +02:00
Oliver Vogel
d982359ab8 Add Encoder Options for progressive Jpeg & interlaced GIF format 2024-03-27 15:30:28 +01:00
Oliver Vogel
c261654599 Refactor encoder tests 2024-03-26 15:17:02 +01: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
dffb2bb4fe Add contribution guideline (#1320) 2024-03-24 08:28:13 +01:00
Viktor Szépe
b0b76eb97e Fix typos (#1319) 2024-03-23 08:55:46 +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
67be90e570 Add doc blocks 3.5.1 2024-03-22 08:12:19 +01:00
Vincent Langlet
77fe8a94fc Avoid warning (#1313) 2024-03-17 13:38:29 +01:00
Oliver Vogel
408d3655c7 Edit texts 3.5.0 2024-03-13 17:26:15 +01:00
Oliver Vogel
992b866562 Add code improvements 2024-03-10 12:25:07 +01:00
Oliver Vogel
88c24d178e Soften the test check for FontProcessorTest
As slightly different results can occur in different environments
with results of imageftbbox and roundings, a range is checked
instead of a fixed value.
2024-03-10 11:59:18 +01:00
Oliver Vogel
ed310770a5 Change font size in GD FontProcessorTest 2024-03-10 11:49:22 +01:00
Oliver Vogel
16df40cef9 Add tests for FontFactory stroke & wrap methods 2024-03-10 11:37:01 +01:00
Oliver Vogel
2b659a6863 Add test for Font::class stroke functions 2024-03-10 11:34:59 +01:00
Oliver Vogel
0d8df3801e Add tests for AbstractFontProcessor 2024-03-10 11:28:12 +01:00
Oliver Vogel
159fba5662 Add font processor tests 2024-03-10 11:06:35 +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
2e9f91c311 Centralize duplicate code 2024-03-08 16:22:59 +01:00
Oliver Vogel
5cd2641a99 Add doc block @link tags to main methods 2024-03-04 16:48:36 +01:00
Oliver Vogel
26890d7f78 Fix typo in headline 2024-03-02 16:44:52 +01:00
Oliver Vogel
882b4a1a42 Rename method 2024-03-02 13:51:04 +01:00
Oliver Vogel
9f2ea1b688 Fix bug 2024-03-02 13:50:18 +01:00
Oliver Vogel
a673763e14 Add text stroke outline effect
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>
2024-03-02 12:37:29 +01:00
Oliver Vogel
f1589875a9 Add doc block documentation 2024-03-02 11:36:01 +01:00
Oliver Vogel
17ff3337dd Implement ColorInterface::isTransparent() 2024-03-02 11:29:28 +01:00
Oliver Vogel
7eb16e1aa5 Add tests for importing colors into foreign color spaces 2024-03-02 11:17:12 +01:00
Vincent Langlet
56b9f50594 Add more exception annotation (#1308) 2024-03-01 19:08:52 +01:00
Vincent Langlet
97aa207b25 Add more @throws annotation (#1306) 2024-03-01 16:56:57 +01:00
Oliver Vogel
15e0167923 Adapt .gitattributes 2024-02-29 16:21:51 +01:00
Oliver Vogel
18295de721 Rename xml file for proper extension 2024-02-29 16:10:58 +01:00
Oliver Vogel
2e7ce7b3c7 Add phpstan.neon to .gitignore 2024-02-29 16:06:32 +01:00
Oliver Vogel
037bab867d Move to phpcs.xml.dist 2024-02-29 16:05:07 +01:00
Oliver Vogel
6abba0b552 Add exception in SliceAnimationModifier
Added again to avoid cryptic error messages.
2024-02-29 15:32:54 +01:00
Oliver Vogel
2ddcc2ceec Merge branch 'develop' into VincentLanglet-thrownException 2024-02-29 15:27:26 +01:00
Oliver Vogel
2cf08016bd Correct indent size in .editorconfig 2024-02-29 15:26:37 +01:00
Oliver Vogel
76dec97a46 Include exception with use statement 2024-02-29 15:20:25 +01:00
Oliver Vogel
3256874eba Remove redundant code 2024-02-29 15:16:29 +01:00
Oliver Vogel
f83f37e551 Fix merge conflicts 2024-02-29 15:16:14 +01:00
Oliver Vogel
18741c6b44 Merge branch 'develop' into VincentLanglet-thrownException 2024-02-29 15:12:39 +01:00
Vincent Langlet
1ed31f3cdf Fix missing phpdoc and configure phpstan 2024-02-29 10:19:45 +01:00
Vincent Langlet
ba39c13d2b Rework 2024-02-29 10:10:52 +01:00
Vincent Langlet
3e87be6a63 Add decoder and encoder thrown exception 2024-02-28 17:30:25 +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
Oliver Vogel
fe1b0e2e64 Remove redundant code 3.4.0 2024-02-14 16:11:21 +01:00
Oliver Vogel
a86a94762e Add doc blocks 2024-02-06 15:30:56 +01:00
Oliver Vogel
0d2c3e7d01 Correct typo 2024-02-03 17:59:28 +01:00
Oliver Vogel
adf3764667 Refactor & optimize line splitting 2024-02-03 16:23:04 +01:00