1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-02 02:12:37 +02:00

617 Commits

Author SHA1 Message Date
Oliver Vogel
0b33e448c0 Rename test data provider method 2025-08-20 16:39:08 +02:00
Oliver Vogel
bee471e68a Implement DataUri::class 2025-08-03 10:28:11 +02:00
Oliver Vogel
e40fd0ec93 Externalize data provider 2025-08-03 07:33:58 +02:00
Oliver Vogel
f217168372 Rename CanBuildFilePointer::buildFilePointer() 2025-08-02 08:16:57 +02:00
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
9bca7b2dbd Add DriverInterface::handleImageInput() & handleColorInput() 2025-08-01 16:53:37 +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
ad0dc4bb76 Implement ColorInterface::create(mixed ...$input) 2025-06-24 17:02:24 +02:00
Oliver Vogel
83b6c0e73a Rename methods 2025-06-22 16:13:52 +02:00
Oliver Vogel
7c62d9847f Implement Alignment enum 2025-06-22 10:40:41 +02:00
Oliver Vogel
00e7956d21 Rename methods in ImageManager::class 2025-06-22 08:03:37 +02:00
Oliver Vogel
77bdf1648e Drop support for PHP 8.1 2025-06-21 12:11:52 +02:00
Oliver Vogel
19d4ea411e Implement dedicated reading methods for ImageManager 2025-06-21 11:29:12 +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
2ca57b1e92 Add type hints 2025-05-31 09:59:31 +02:00
Oliver Vogel
7b79c3b1de Fix bug 2025-05-31 09:59:19 +02:00
Oliver Vogel
7d37998d7e Remove variable cast 2025-05-31 09:49:48 +02:00
Oliver Vogel
6f418db2c4 Remove unnecessary doc blocks 2025-05-31 09:49:13 +02:00
Oliver Vogel
9d19b255fe Use original function instead of aliases 2025-05-31 09:27:34 +02:00
Oliver Vogel
389c395c2f Refactor test code 2025-05-26 09:31:16 +02:00
Oliver Vogel
d0f097b8a3 Enable wrapping for non western text (#1444) 2025-05-22 19:26:23 +02:00
Oliver Vogel
774fd9dfbd Add to phpcs ruleset 2025-03-31 15:32:07 +02:00
Oliver Vogel
b63b0f26b2 Enforce doc block style 2025-03-30 11:19:39 +02:00
Oliver Vogel
00bc65e491 Implement IteratorAggregate for Resolution::class 2025-03-05 16:35:04 +01:00
Oliver Vogel
78e290ae97 Implement IteratorAggregate for Point::class 2025-03-05 16:29:51 +01:00
Oliver Vogel
ebbb711871 Fix bug in File::class
The missing call to rewind() resulted in the file being saved with empty
content if File::save() was called twice in succession.
2025-02-27 14:08:55 +01:00
Oliver Vogel
e90798bd5d Add tests 2025-02-04 19:42:30 +01:00
Oliver Vogel
d73ccf5271 Implement create() & tryCreate() for FileExtension & MediaType 2025-02-04 19:35:42 +01:00
Oliver Vogel
7eb9d55bfc Add test data 2025-02-01 10:14:35 +01:00
Oliver Vogel
1614ce4b84 Refactor RectangleResizerTest::class 2025-02-01 10:06:15 +01:00
Oliver Vogel
0f87254688 Fix bug in CropModifier of Imagick driver (#1428)
The CropModifier produced strange artifacts if another resize step was performed after the modification.

This patch removes the copying of the alpha channel in the CropModifier and implements a different method.

See: https://github.com/Intervention/image/issues/1426
2025-02-01 08:28:26 +01:00
Oliver Vogel
629142e2de Add non-standard media type "image/x-bmp3" 2025-01-31 17:19:11 +01:00
Oliver Vogel
513b8c8e6d Add more detailed assertion message 2025-01-30 16:58:07 +01: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
49c7cd0890 Fix/GitHub workflow (#1423)
Switch back to Ubuntu 22 and pull in imagick via action instead of installing manually.
2025-01-18 16:35:21 +01:00
Oliver Vogel
0cd29e6a78 Fix bug when trying to create FileExtension
Creation was only possible from lowercase extensions. This patch makes
it possible to create from lowercase or uppercase.
2025-01-17 15:14:06 +01:00
Oliver Vogel
f70142152b Include jp2k as jpeg2000 extension 2025-01-16 16:10:56 +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
116bd03bc6 Add test for Profile::class 2025-01-02 16:18:54 +01:00
Oliver Vogel
c7ec22602c Add File::fromPath() 2025-01-02 15:59:36 +01:00
Oliver Vogel
c66fa7dac8 Add 'image/x-jp2-codestream' as Jpeg2000 mime type 2024-12-30 09:45:35 +01:00
Oliver Vogel
8e12c2e152 Add tests 2024-12-28 11:48:09 +01:00
Oliver Vogel
5a1b6f55f8 Refactor RemoveAnimationModifier::class, Add tests 2024-12-28 10:52:08 +01:00