1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 20:28:21 +01:00

1639 Commits

Author SHA1 Message Date
Oliver Vogel
115d2ad3be
Rewrite return type 2024-07-03 17:19:15 +02:00
Oliver Vogel
3b7f6a0cde
Remove redundant code 2024-07-03 17:18:36 +02:00
Oliver Vogel
75ab2c2225
Refactor format detection 2024-07-03 17:16:10 +02:00
Oliver Vogel
f130eb0985
Add Format::tryCreate() 2024-07-03 17:16:10 +02:00
Philippe Lonchampt
4bc03a2304
Handle non-standard but still in use image/x-jpeg mimetype as JPEG (#1372)
* Handle non-standard but still in use image/x-jpeg mimetype as JPEG

* Fix test
2024-07-02 17:53:07 +02:00
Oliver Vogel
137bdb356a
Avoid unnecessary exif_read_data calls (#1371)
EXIF data extraction makes only sense for JPEG and TIFF format. This
patch checks the format and calls exif_read_data only for appropriate
formats.

Previously, the function was also called with formats that can not
contain EXIF data. This resulted in warnings.
3.7.1
2024-06-29 09:51:20 +02:00
Oliver Vogel
c7fb60e6c9
Change format of GitHub issue templates 2024-06-26 17:52:00 +02:00
Oliver Vogel
f3a38975db
Rewrite exception messages for methods in AbstractDecoder 2024-06-26 17:38:27 +02:00
Oliver Vogel
bbf0f9f821
Change signature of internal methods
The following internal methods now return enum MediaType instead of
string.

Intervention\Image\AbstractDecoder::getMediaTypeByFilePath()
Intervention\Image\AbstractDecoder::getMediaTypeByBinary()
2024-06-26 17:13:30 +02:00
Oliver Vogel
c199536eac
Refactor InputHandler decoder resolving
Makes it possible that decoders of InputHandler do not necessarily
have to have a driver-specific version of "Inter". If the decoder
class cannot be resolved by the driver and is therefore not
available, it is simply ignored and the next decoder will be tried.
2024-06-23 17:15:42 +02:00
Oliver Vogel
bb0e9284a3
Add missing docbock 2024-06-23 11:15:04 +02:00
Oliver Vogel
470b5bfdd8
Add imagesetthickness on GD's draw modifiers
Make sure that no border is drawn for background colors
2024-06-16 10:44:59 +02:00
Oliver Vogel
6bfd3dd1d4
Fix typos 3.7.0 2024-06-13 18:34:59 +02:00
Oliver Vogel
9fe7980bdc
Fix bug when centering non-latin characters (#1366) 2024-06-13 14:36:55 +02:00
Oliver Vogel
ed6ddf4aa7
Fix discarded alpha channel of watermark in PlaceModifier (#1368) 2024-06-12 17:10:49 +02:00
Oliver Vogel
13c166d104
Throw exception if font file is not found 2024-06-11 16:15:55 +02:00
Oliver Vogel
27512eedb3 Change typehints
Change the typing. “callable” is too general, as classes are also
included here. “Closure” is actually sufficient, but “callable” was left
in the outer interface so as not to create a breaking change. In the
underlying factories, however, only “Closure” is still possible.
2024-06-09 12:04:36 +02:00
Oliver Vogel
36ca199d1b Add init method to DrawableFactoryInterface::class 2024-06-09 12:04:36 +02:00
Oliver Vogel
d3a044e883 Adapt type hints in ImageInterface 2024-06-09 12:04:36 +02:00
Oliver Vogel
0b47ee8fd0 Add DrawableInterface::setPosition() 2024-06-09 12:04:36 +02:00
Oliver Vogel
1da1339a2c Let draw methods accept object & callback input 2024-06-09 12:04:36 +02:00
Oliver Vogel
410d98002a
Add Drawable improvements & preparation for future features
* Add DrawableFactoryInterface
* Add universal Drawable factory class
* Add x/y setter methods to PointInterface
* Replace Point::class type hints by PointInterface::class
2024-06-09 10:49:00 +02:00
gammalogic
56a92c7144 Added change requests from @olivervogel 2024-06-09 07:55:52 +02:00
gammalogic
216f4cffb4 Add bezier curve drawing tool 2024-06-09 07:55:52 +02:00
Oliver Vogel
6d0d0b2002
Fix bug in DrawPolygonModifier of imagick driver 2024-06-08 10:28:52 +02:00
Oliver Vogel
3cc3cdb269
Add @throws keyword 2024-06-06 19:26:26 +02:00
Oliver Vogel
e405753b85
Merge branch 'main' into develop 2024-06-06 19:23:00 +02:00
Oliver Vogel
d428433aa7
Merge pull request #1361 from Intervention/hotfix/cover-modifier-size
Fix bug in cover modifiers
3.6.5
2024-06-06 19:15:24 +02:00
Oliver Vogel
1efc04e5fc
Add @throws keywords 2024-06-06 17:49:31 +02:00
Oliver Vogel
a566769f21
Fix bug in cover modifiers
See: https://github.com/Intervention/image/issues/1359
2024-06-06 17:38:32 +02:00
Oliver Vogel
893de3177d
Fix bug in Imagick driver's CoverModifier 2024-06-02 17:36:53 +02:00
Oliver Vogel
8d50e50dcb
Merge pull request #1350 from Intervention/feature/config
Configuration API
2024-06-01 09:24:52 +02:00
Oliver Vogel
5e4f74f3b3
Merge branch 'develop' into feature/config 2024-06-01 09:21:03 +02:00
Tsuguya Toma
e0e11d0670 Update doctype ImageManagerInterface 2024-05-28 15:12:01 +02:00
Oliver Vogel
27fd48170b
Move ColorObjectDecoder & ImageObjectDecoder
Move ColorObjectDecoder & ImageObjectDecoder from drivers context
because they can operate without any specific drivers information
must not be specialized.
2024-05-25 10:34:15 +02:00
Oliver Vogel
c7d90142a7
Merge branch 'develop' into feature/config 2024-05-25 09:13:16 +02:00
Vincent Langlet
267d588eb1 Fix build 2024-05-24 14:29:48 +02:00
Vincent Langlet
895236c471 Silence php warning during exceptions 2024-05-24 14:29:48 +02:00
Oliver Vogel
7b8b9e1e93
Add tests 2024-05-20 10:41:37 +02:00
Oliver Vogel
25058825c2
Add InputHandlerTest 2024-05-15 18:06:04 +02:00
Oliver Vogel
a12b646f82
Add ability to call Config::setOptions() with single array 2024-05-15 17:24:24 +02:00
Oliver Vogel
62a869ca48
Add @throws tag 2024-05-15 17:07:45 +02:00
Oliver Vogel
00b7f8a412
Add @throws docblock tags 2024-05-15 17:06:06 +02:00
Oliver Vogel
75c6c22563 Update imagemagick to latest version in GitHub workflow 2024-05-11 20:43:00 +02:00
Oliver Vogel
602ec5f64a
Complete docblock 2024-05-11 20:32:01 +02:00
Oliver Vogel
29047b1325
Add docblock comments 2024-05-11 20:09:36 +02:00
Oliver Vogel
c06e14df1b
Fix @param order 2024-05-11 17:44:29 +02:00
Oliver Vogel
cca6bd34bc
Update exif data after orient() call for GD driver
Set exif data of image to top-left orientation, marking the image as
aligned and making sure the rotation correction process is not
performed again.
2024-05-11 10:59:12 +02:00
Oliver Vogel
7a07db6cdc
Correct method name 2024-05-11 10:10:43 +02:00
Oliver Vogel
5947dacce0
Edit CONTRIBUTING guideline 2024-05-11 10:03:27 +02:00