Oliver Vogel
3ba445b2d3
Fix bug with overlapping colors in ResizeCanvasModifier ( #1394 )
2024-08-14 15:07:00 +02:00
Oliver Vogel
50a16bbdc1
Fix lost transparency when converting to GIF format
2024-08-14 14:57:09 +02:00
Oliver Vogel
e7554ec048
Allow png results to be 'grayscale' with 'indexed' option
2024-08-11 13:27:46 +02:00
Oliver Vogel
20dae08304
Merge branch 'develop' into feature/png-encoder-indexed-option
2024-08-11 12:03:19 +02:00
Oliver Vogel
31779d0263
Add ability to read instances of EncodedImaged::class ( #1386 )
...
* Implement EncodedImageObjectDecoder::class
* Add tests for EncodedImageObjectDecoder::class
2024-08-11 11:43:54 +02:00
Oliver Vogel
4a614ddfb8
Implement new method ColorInterface::isClear() ( #1387 )
2024-08-11 11:41:38 +02:00
Oliver Vogel
5e9b4aa681
Rename method
2024-08-05 16:54:09 +02:00
Oliver Vogel
63990a8fb3
Add tests for PNG indexed options
2024-08-03 11:15:29 +02:00
Oliver Vogel
2ee997d98f
Add method to detect PNG color types
2024-08-03 11:04:30 +02:00
Oliver Vogel
460b205687
Rename class
2024-08-03 11:03:32 +02:00
Oliver Vogel
6daaedf7ed
Add non-standard mime type image/x-heic
2024-07-10 13:49:46 +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
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
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
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
216f4cffb4
Add bezier curve drawing tool
2024-06-09 07:55:52 +02:00
Oliver Vogel
e405753b85
Merge branch 'main' into develop
2024-06-06 19:23:00 +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
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
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
eed36c4081
Update
2024-05-10 19:01:37 +02:00
Oliver Vogel
59781c723e
Mess with Config object
2024-05-10 18:52:42 +02:00
Oliver Vogel
64632cd2c3
Add tests, improve code
2024-05-10 16:47:17 +02:00
Oliver Vogel
3ad426153a
Split ImageManagerTest
2024-05-10 15:59:43 +02:00
Oliver Vogel
b79650acee
Refactor config handling
2024-05-10 10:07:17 +02:00
Oliver Vogel
51a81c845b
Add config tests
2024-05-09 11:49:54 +02:00
Oliver Vogel
fa2bf7d793
Implement config options
2024-05-09 10:38:33 +02:00
Oliver Vogel
55c64ef812
Add tests for NativeObjectDecoders
2024-05-09 09:15:44 +02:00
Oliver Vogel
193324ec88
Refactor line length calculation
2024-05-08 15:53:15 +02:00
Oliver Vogel
9a013b90fa
Remove test
...
This test only fails with no longer supported GD lib version 2.1.
The docker container of the test environment comes unfortunately with
with version and I have not yet managed to install a more recent version.
Unfortunately, adding the PHPUnit attribute #RequiresPhpExtension
with version number does not work either.
2024-05-07 14:43:26 +02:00
Oliver Vogel
cf0291f9c1
Refactor InputHandler logic
2024-05-06 17:19:41 +02:00
Oliver Vogel
31fb728c14
Fix test
2024-05-05 13:18:03 +02:00
Oliver Vogel
72f455b2de
Add tests to reproduce bug
2024-05-05 13:06:57 +02:00
Oliver Vogel
2e0cbf2408
Add tolerance to test
2024-05-05 11:49:04 +02:00
Oliver Vogel
41f2c96dc8
Refactor & fix bug in BaseTestCase::assertColor()
2024-05-05 11:48:13 +02:00
Oliver Vogel
ab403d98c6
Fix ignored opacity in Imagick's PlaceModifer for certain files. ( #1346 )
...
* Add tests to reproduce bug in PlaceModifier
* Fix bug in PlaceModifier
* Add tolerance parameter to BaseTestCase::assertColor()
2024-05-05 11:28:01 +02:00
Oliver Vogel
33cbb217a0
Filter out parameter that do not match target encoder ( #1333 )
...
Filter out parameters/options that are passed to a format-unspecific encoder like AutoEncoder::class or MediaTypeEncoder::class but are not available in the format specific target encoder.
2024-04-23 16:17:12 +02:00
Oliver Vogel
3ff1573b78
Add negative tests
2024-04-14 09:28:09 +02:00
Oliver Vogel
490b8ae5c4
Add option to encode interlaced PNG format
2024-04-14 09:24:26 +02:00
Oliver Vogel
8f6aabe8b9
Supported format detection ( #1330 )
...
* Implement data struture for format, media types & file extensions
* Refactor encoder resolving
* Extend type options in encoder methods
* Add DriverInterface::supports()
2024-04-13 18:42:48 +02:00
Oliver Vogel
5ee087e711
Refactor tests to use data providers
2024-04-13 16:01:54 +02:00
Oliver Vogel
2691d92ec5
Add ImageManager::driver()
2024-04-13 15:37:39 +02:00
Oliver Vogel
6e104b6594
Add ability to read Imagick or GDImage directly ( #1329 )
2024-04-10 15:17:36 +02:00
Oliver Vogel
d982359ab8
Add Encoder Options for progressive Jpeg & interlaced GIF format
2024-03-27 15:30:28 +01:00