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

1830 Commits

Author SHA1 Message Date
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
3f5e29989b Refactor code 2025-05-31 09:40:25 +02:00
Oliver Vogel
9d19b255fe Use original function instead of aliases 2025-05-31 09:27:34 +02:00
Oliver Vogel
99093e9e23 Rename alias 2025-05-29 08:17:13 +02:00
Oliver Vogel
8baac46d50 Optimize GIF detection 2025-05-27 15:53:31 +02:00
vlakoff
88466c6a49 Simplify GIF magic number detection (#1446)
Removed unnecessary bin2hex() conversion.
2025-05-27 07:58:35 +02:00
Oliver Vogel
f98f4d8aae Add placeholder comments in empty class bodies & constructors 2025-05-26 09:31:25 +02:00
Oliver Vogel
389c395c2f Refactor test code 2025-05-26 09:31:16 +02:00
Oliver Vogel
748cfc4939 Add to standards set 2025-05-26 09:11:46 +02:00
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