1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-31 01:29:51 +02:00

57 Commits

Author SHA1 Message Date
Oliver Vogel
eecd98e338 Clean up 2025-08-01 17:31:58 +02:00
Oliver Vogel
60209b8f8f Externalize data provider 2025-08-01 17:30:09 +02:00
Oliver Vogel
bfe5e93420 Merge branch 'develop' into next 2025-07-30 15:14:22 +02:00
Oliver Vogel
8c49eb21a6 Allow all driver namespaces 2025-07-30 15:13:19 +02:00
Oliver Vogel
a20c9833da Rename Image::blendTransparency() to Image::background() 2025-06-20 17:23:01 +02:00
Oliver Vogel
5f3cc8a7a4 Add type hints in tests 2025-06-01 07:57:46 +02:00
Oliver Vogel
389c395c2f Refactor test code 2025-05-26 09:31:16 +02:00
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
f6e00abf6b Implement Driver::version() (#1417) 2025-01-11 08:47:43 +01:00
Oliver Vogel
4c48f7a143 Replace (semi-)transparent alpha values in BlendTransparencyModifier::class 2025-01-04 10:08:09 +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
436460e33b Fix incorrect resolution conversion (#1411)
* Assert resolution x/y result

* Fix Resolution conversion
2025-01-04 08:31:13 +01:00
Oliver Vogel
8e12c2e152 Add tests 2024-12-28 11:48:09 +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
92bae6e762 Implement __debugInfo() (#1406) 2024-12-14 08:27:56 +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
dce0cd41fe Optimize code 2024-11-11 10:44:15 +01:00
Oliver Vogel
b496d1f6b9 Add test assertions to validate the correct mime type 2024-10-27 11:15:54 +01:00
Oliver Vogel
eff5c7d81a Change test values 2024-10-06 11:55:01 +02:00
Oliver Vogel
623476d8b0 Change test values 2024-10-06 11:50:15 +02:00
Oliver Vogel
e77a33394c Switch EncodedImage::class to temporary stream resource 2024-10-06 11:36:17 +02:00
Oliver Vogel
3ba445b2d3 Fix bug with overlapping colors in ResizeCanvasModifier (#1394) 2024-08-14 15:07:00 +02:00
Oliver Vogel
e7554ec048 Allow png results to be 'grayscale' with 'indexed' option 2024-08-11 13:27:46 +02:00
Oliver Vogel
20dae08304 Merge branch 'develop' into feature/png-encoder-indexed-option 2024-08-11 12:03:19 +02:00
Oliver Vogel
31779d0263 Add ability to read instances of EncodedImaged::class (#1386)
* Implement EncodedImageObjectDecoder::class
* Add tests for EncodedImageObjectDecoder::class
2024-08-11 11:43:54 +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
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
e405753b85 Merge branch 'main' into develop 2024-06-06 19:23:00 +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
27fd48170b Move ColorObjectDecoder & ImageObjectDecoder
Move ColorObjectDecoder & ImageObjectDecoder from drivers context
because they can operate without any specific drivers information
must not be specialized.
2024-05-25 10:34:15 +02:00
Oliver Vogel
c7d90142a7 Merge branch 'develop' into feature/config 2024-05-25 09:13:16 +02:00
Oliver Vogel
7b8b9e1e93 Add tests 2024-05-20 10:41:37 +02:00
Oliver Vogel
64632cd2c3 Add tests, improve code 2024-05-10 16:47:17 +02:00
Oliver Vogel
fa2bf7d793 Implement config options 2024-05-09 10:38:33 +02:00
Oliver Vogel
55c64ef812 Add tests for NativeObjectDecoders 2024-05-09 09:15:44 +02:00
Oliver Vogel
cf0291f9c1 Refactor InputHandler logic 2024-05-06 17:19:41 +02:00
Oliver Vogel
72f455b2de Add tests to reproduce bug 2024-05-05 13:06:57 +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
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
8f6aabe8b9 Supported format detection (#1330)
* Implement data struture for format, media types & file extensions
* Refactor encoder resolving
* Extend type options in encoder methods
* Add DriverInterface::supports()
2024-04-13 18:42:48 +02:00
Oliver Vogel
6e104b6594 Add ability to read Imagick or GDImage directly (#1329) 2024-04-10 15:17:36 +02:00
Oliver Vogel
d982359ab8 Add Encoder Options for progressive Jpeg & interlaced GIF format 2024-03-27 15:30:28 +01:00