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

1769 Commits

Author SHA1 Message Date
Oliver Vogel
d0f097b8a3 Enable wrapping for non western text (#1444) 3.11.3 2025-05-22 19:26:23 +02:00
Nicos Panayides
9659e761ca GIF detection: Only check the first 6 bytes of the input (#1441)
* Only check the first 6 bytes of the input to reduce memory usage and speed up the detection

* Update src/Drivers/AbstractDecoder.php

Co-authored-by: Oliver Vogel <oliver@olivervogel.com>

---------

Co-authored-by: Oliver Vogel <oliver@olivervogel.com>
2025-05-14 16:21:20 +02:00
Oliver Vogel
ae61c580ae Fix testing workflow
* Add libraqm-dev as dependency for testing
* Reformat code
2025-05-01 09:29:48 +02:00
Oliver Vogel
4116933f48 Update github workflow 2025-04-28 17:09:01 +02:00
Oliver Vogel
b9f9c3abda Fix documentation links 2025-04-28 16:58:02 +02:00
Oliver Vogel
d08f8c0e88 Add to phpcs ruleset 2025-03-31 15:51:29 +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
06dacf4aa1 Replace deprecated coding standard rule 2025-03-22 10:01:13 +01:00
Oliver Vogel
52d8d506a6 Modernize docker files 2025-03-22 09:57:39 +01:00
Oliver Vogel
0bf044f37e Fix phpstan issues 2025-03-05 17:04:58 +01:00
Oliver Vogel
cbca8468f1 Ignore phpstan error unset.possiblyHookedProperty
To be compatible with older PHP versions.
2025-03-05 16:57:48 +01: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.
3.11.2
2025-02-27 14:08:55 +01:00
Oliver Vogel
4592f17b5c Optimize method description 2025-02-13 19:50:34 +01:00
Oliver Vogel
fda7a6d3a3 Add option for PHPUnit 12 dependency 2025-02-07 17:15:46 +01:00
Oliver Vogel
e90798bd5d Add tests 2025-02-04 19:42:30 +01:00
Oliver Vogel
42b8d2c781 Switch to self reference 2025-02-04 19:41:05 +01:00
Oliver Vogel
d73ccf5271 Implement create() & tryCreate() for FileExtension & MediaType 2025-02-04 19:35:42 +01:00
Oliver Vogel
5e4f263825 Add libvips to issue template 2025-02-02 07:52:06 +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
3.11.1
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
f6165cda94 Accept only driver classes which implement DriverInterface 2025-01-26 10:58:51 +01:00
Oliver Vogel
9f26854faf Adjust github workflow (#1425)
* Revert github workflow but keep older ubuntu version
* Remove stability matrix
* Rename workflow step
2025-01-19 08:58:20 +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>
3.11.0
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
5d64da97fd Encode webp lossless with Imagick WebpEncoder and quality of 100
Matches behaviour of GD encoder.
2025-01-17 17:20:17 +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
cde28943a5 Edit readme 2025-01-15 19:08:13 +01:00
Oliver Vogel
0ff1d8399b Revert "Move driver list"
This reverts commit 683bf0f415.
2025-01-15 19:04:11 +01:00
Oliver Vogel
683bf0f415 Move driver list 2025-01-15 17:07:34 +01:00
Oliver Vogel
bad2a29315 Add libvips to the backend list 2025-01-15 17:05:30 +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
e07119bc97 Edit readme 2025-01-11 17:27:53 +01:00
Oliver Vogel
4476d9414f Check for existance of IMG_WEBP_LOSSLESS constant
Constant is only presnet, if the used libgd supports lossless WebP
encoding.
2025-01-11 17:18:03 +01:00
Oliver Vogel
14a7b5b24f Extend debug info of Rectangle::class 2025-01-11 10:00:43 +01:00
Oliver Vogel
f6e00abf6b Implement Driver::version() (#1417) 2025-01-11 08:47:43 +01:00
Oliver Vogel
72daad8b89 Add exception in ImageManager::class when driver could not be resolved 2025-01-08 16:34:16 +01:00
Oliver Vogel
1564e45c40 Remove empty line 2025-01-07 15:50:57 +01:00
Oliver Vogel
2921519af1 Add @link for Image::trim() 2025-01-06 19:46:14 +01:00
Oliver Vogel
c837fc9ffe Feature/code modernization (#1412)
* Update phpstan dependency version
* Remove unused code
* Optimize code
* Add type hints
* Change property visibility on final classes
* Modernize code
2025-01-05 10:43:14 +01:00
Oliver Vogel
3374d75384 Refactor code 2025-01-04 10:45:34 +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
3.10.2
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