1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-22 13:32:56 +02:00

15 Commits

Author SHA1 Message Date
Oliver Vogel
6b9ce4fc44 feature/strip encoder parameter (#1421)
Add config option and encoder parameter to strip meta data in the encoding process.

---------

Co-authored-by: Thomas <thomas@sctr.net>
2025-01-18 16:42:14 +01: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
b9a16d4df6 Optimize tests 2024-12-07 11:38:33 +01:00
Oliver Vogel
a5b1645002 Switch test data providers to generators 2024-11-12 16:15:46 +01:00
Oliver Vogel
b496d1f6b9 Add test assertions to validate the correct mime type 2024-10-27 11:15:54 +01:00
Oliver Vogel
e77a33394c Switch EncodedImage::class to temporary stream resource 2024-10-06 11:36:17 +02:00
Oliver Vogel
e7554ec048 Allow png results to be 'grayscale' with 'indexed' option 2024-08-11 13:27:46 +02:00
Oliver Vogel
63990a8fb3 Add tests for PNG indexed options 2024-08-03 11:15:29 +02:00
Oliver Vogel
460b205687 Rename class 2024-08-03 11:03:32 +02:00
Oliver Vogel
3ff1573b78 Add negative tests 2024-04-14 09:28:09 +02:00
Oliver Vogel
490b8ae5c4 Add option to encode interlaced PNG format 2024-04-14 09:24:26 +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
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