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

1721 Commits

Author SHA1 Message Date
Oliver Vogel
e4004c6402 Remove unused code 2023-12-16 13:43:50 +01:00
Oliver Vogel
50b873d744 Add Image::reduceColors() 2023-12-16 12:28:44 +01:00
Oliver Vogel
9863a1f7d7 Change encoding logic
The logic for encoding image data in connection with a limit on total
colors has been removed. The number of colors of an image can now be
reduced with the corresponding modifier, but this is not related to the
output of the encoder.

Furthermore, there is now an AutoEncoder, which resumes the original
format of the original image source and selects the encoder accordingly.
This Origin attribute is set during the decoding process so that it can
be read out again later. The AutoEncoder is now the default value of the
parameter for Image::encode().
2023-12-16 11:34:01 +01:00
Oliver Vogel
dbe27c6ab5 Add AutoEncoder 2023-12-16 09:17:53 +01:00
Oliver Vogel
cf1958c6e8 Implement image origin 2023-12-14 19:52:22 +01:00
Oliver Vogel
c0a3ef85a0 Adapt default encoder quality values 2023-12-14 16:21:59 +01:00
Oliver Vogel
847d577453 Merge branch 'feature/image-cloning' 2023-12-14 15:46:20 +01:00
Oliver Vogel
50e3e3308e Add image cloning 2023-12-14 15:44:23 +01:00
Oliver Vogel
ac97341294 Change GIF detection to avoid fileinfo dependecy 3.0.2 2023-12-14 14:17:13 +01:00
Oliver Vogel
343f53001d Merge branch 'main' into feature/image-cloning 2023-12-13 16:40:30 +01:00
Oliver Vogel
2622255af8 Draw lines antialiased with gd driver 2023-12-12 18:45:54 +01:00
Oliver Vogel
f6e4d0dda4 Complete example code in readme 2023-12-11 14:37:09 +01:00
Oliver Vogel
87693451a0 Update issue templates 2023-12-10 17:31:29 +01:00
Oliver Vogel
db15ae46c2 Update issue templates 2023-12-10 17:29:55 +01:00
Oliver Vogel
3230013930 Update issue templates 2023-12-10 17:28:44 +01:00
Oliver Vogel
6f6631edd8 Set local dev environment to the minimum required PHP version 2023-12-09 20:19:42 +01:00
Oliver Vogel
61fae49be3 Add tests for image cloning 2023-12-09 16:44:22 +01:00
Oliver Vogel
f17fe7bb54 Remove exception on GD driver's ProfileRemovalModifier 3.0.1 2023-12-09 11:10:43 +01:00
Oliver Vogel
ee98a0f89d Correct typo 2023-12-09 09:09:17 +01:00
Oliver Vogel
1b5a0b8642 Add mbstring extension as dependency 2023-12-09 08:38:40 +01:00
Oliver Vogel
14db5290f2 Correct wrong namespace 2023-12-09 07:46:13 +01:00
Oliver Vogel
b3380abd24 Add security related contact to readme 2023-12-08 19:13:42 +01:00
Oliver Vogel
4c1938f0d3 Merge branch 'next' 3.0.0 2023-12-08 14:57:00 +01:00
Oliver Vogel
3b7238f7a8 Revert position behaviour of resize methods 2023-12-07 18:37:50 +01:00
Oliver Vogel
2fe03aeba7 Fix bugs 2023-12-07 16:00:09 +01:00
Oliver Vogel
59a4353661 Add tests 2023-12-07 15:33:15 +01:00
Oliver Vogel
e0c69e07c1 Fix bug 2023-12-07 15:30:17 +01:00
Oliver Vogel
a3d524fa7f Add tests 2023-12-06 18:39:27 +01:00
Oliver Vogel
aa59a486d8 Rename method 2023-12-06 18:29:28 +01:00
Oliver Vogel
966ded4d00 Rename file 2023-12-06 18:19:37 +01:00
Oliver Vogel
b41c4d4af0 Change behaviour of the position argument of ResizeCanvasModifier 2023-12-06 17:21:12 +01:00
Oliver Vogel
87b90afcb2 Add ResizeCanvasRelativeModifier 2023-12-06 16:36:40 +01:00
Oliver Vogel
1e0de6501a Add ResizeCanvasModifiers 2023-12-06 16:20:46 +01:00
Oliver Vogel
8c7fb0cb46 Fix bugs 2023-12-06 16:11:29 +01:00
Oliver Vogel
38b85fa0f6 Rename methods
Rename fit() to cover() and fitDown() to coverDown()
2023-12-05 18:34:27 +01:00
Oliver Vogel
809bd1628f Fix bug 2023-12-05 17:15:02 +01:00
Oliver Vogel
9e3522304f Rename classes 2023-12-03 19:57:49 +01:00
Oliver Vogel
6387c7b884 Rename DrawModifier to AbstractDrawModifier 2023-12-03 19:47:14 +01:00
Oliver Vogel
0e5328a575 Rename method & add docblocks 2023-12-03 19:44:32 +01:00
Oliver Vogel
9e369e1d57 Add doc block 2023-12-03 19:41:14 +01:00
Oliver Vogel
00bc9e44f2 Remove redundant code 2023-12-03 19:41:08 +01:00
Oliver Vogel
f5d32df631 Specify return type in doc block 2023-12-03 17:27:18 +01:00
Oliver Vogel
05943221b3 Refactor colors & add setChannel method 2023-12-03 17:03:58 +01:00
Oliver Vogel
8d9d3a0e12 Improve ContainModifier 2023-12-03 16:38:07 +01:00
Oliver Vogel
d0b6ea059b Rename test files 2023-12-03 16:25:27 +01:00
Oliver Vogel
865adc522d Restructure and change pad() & padDown() methods
- padDown() no longer exists
- pad() does not upscale the original image
- new method contain() which does the same as pad() but is able to upscale
2023-12-03 16:05:50 +01:00
Oliver Vogel
987367d430 Fix bug 2023-12-03 11:51:06 +01:00
Oliver Vogel
02e62b8cda Fix bug 2023-12-03 11:40:58 +01:00
Oliver Vogel
6354c37582 Fix bug in Imagick PadModifier 2023-12-03 11:15:05 +01:00
Oliver Vogel
84d2aaad76 Add PadModifier tests 2023-12-02 16:07:27 +01:00