1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-29 09:47:36 +01:00

1311 Commits

Author SHA1 Message Date
Oliver Vogel
72afbe47cf Increase version number of intervention/gif 2024-01-04 12:33:22 +01:00
Oliver Vogel
356f79e99c Adapt gif encoder api to intervention/gif v4 2024-01-03 17:10:52 +01:00
Oliver Vogel
ec1fead71f Throw exceptions if resizer receives unvalid values 2024-01-02 13:03:44 +01:00
Oliver Vogel
66b2895238 Limit proportional sclaing values to a min. of 1 2024-01-02 12:51:33 +01:00
Oliver Vogel
3f96a8f752 Merge branch 'sirosfakhri-hotfix/extra_interface' into develop 3.2.1 2023-12-30 21:10:28 +01:00
Siros Fakhri
5f4135aa8e remove use Countable; 2023-12-30 23:30:14 +03:30
Siros Fakhri
15e01c784c Remove Countable interface from image.php, 'cause already implemented in ImageInterface 2023-12-30 23:00:15 +03:30
Oliver Vogel
818a7fd864 Remove declared but not used variables 2023-12-29 17:10:27 +01:00
Oliver Vogel
b4597236d4 Allow Image::save() to be used without file extension 2023-12-29 17:05:40 +01:00
Oliver Vogel
d4c13112ac Edit readme 2023-12-28 20:26:04 +01:00
Oliver Vogel
0844947172 Edit readme 2023-12-28 18:20:45 +01:00
Oliver Vogel
dcedead709 Remove readme from .gitattributes 3.2.0 2023-12-23 17:36:10 +01:00
Oliver Vogel
d87d0e6e1d Normalize parameters in media type & extension encoders 2023-12-23 13:42:15 +01:00
Oliver Vogel
b58b4b0e43 Add more detailed exception messages for NotWritableException 2023-12-23 10:28:49 +01:00
Oliver Vogel
03aa19cac4 Add jpeg200 extensions & media types to encoders 2023-12-23 10:18:18 +01:00
Oliver Vogel
4e72c5c5c1 Merge branch 'feature/jpeg2000' 2023-12-23 10:13:49 +01:00
Oliver Vogel
ea13f2e0bb Add quality parameter to driver ambiguous decoders 2023-12-23 10:10:26 +01:00
Oliver Vogel
e9ecab2a54 Implement Jpeg2000 encoding with Imagick driver 2023-12-21 21:25:17 +01:00
Oliver Vogel
097bfed504 Implement Image::encodeByPath() 2023-12-21 16:48:41 +01:00
Oliver Vogel
38cdd24c8f Implement Image::encodeByExtension() 2023-12-21 16:11:30 +01:00
Oliver Vogel
c6d52c39d1 Rename ImageInterface::toMediaType() 2023-12-21 15:33:08 +01:00
Oliver Vogel
27833d225c Fix bug with drawing (half) transparent colors with GD 2023-12-20 16:31:52 +01:00
Oliver Vogel
1831a4f45e Add width & height setters in EllipseFactory 2023-12-20 16:26:01 +01:00
Oliver Vogel
9ff8cd25ab Improve documentation 2023-12-20 16:06:02 +01:00
Oliver Vogel
973474c537 Perform dependency check on driver creation 2023-12-20 14:30:11 +01:00
Oliver Vogel
bc09f0d42f Set lossless quality for GD WebpEncoder
A value of 101 is actually specified for lossless coding with GD.
However, since Imagick expects 100 for lossless in WebP format,
I adjust this for both drivers.
2023-12-19 16:52:15 +01:00
Oliver Vogel
a1da8e287a Refactor code 2023-12-19 16:36:32 +01:00
Oliver Vogel
2d0369b3a9 Add doc blocks 2023-12-18 17:08:23 +01:00
Oliver Vogel
04faec22a6 Add Image::toMediaType() 2023-12-17 17:08:10 +01:00
Oliver Vogel
b12f31e9b2 Add Origin test 2023-12-17 17:06:09 +01:00
Oliver Vogel
f3e0708bd1 Add auto encode tests 2023-12-17 17:03:42 +01:00
Oliver Vogel
c594ed1dd0 Add mediaType methods for every mimetype method 2023-12-17 16:48:09 +01:00
Oliver Vogel
f4cd289e91 Rename method 2023-12-17 16:42:16 +01:00
Oliver Vogel
61d7cdbac2 Add minor code improvements 2023-12-17 09:36:24 +01:00
Oliver Vogel
a1f1b98fb5 Increase memory limit for phpstan 2023-12-17 09:26:37 +01:00
Oliver Vogel
5b7ee1eb8e Add TIFF encoder for Imagick driver 2023-12-16 19:10:42 +01:00
Oliver Vogel
9ba9a05f35 Add type hint 2023-12-16 17:27:42 +01:00
Oliver Vogel
3de73efee5 Add missing paramter in ImageInterface 3.1.0 2023-12-16 15:21:10 +01:00
Oliver Vogel
68f2bb19ce Add QuantizeColorsModifier tests 2023-12-16 14:37:24 +01:00
Oliver Vogel
516c6aa08f Retain image resolution in GD driver modifiers 2023-12-16 13:58:55 +01:00
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