Oliver Vogel
f70142152b
Include jp2k as jpeg2000 extension
2025-01-16 16:10:56 +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
f6e00abf6b
Implement Driver::version() ( #1417 )
2025-01-11 08:47:43 +01:00
Oliver Vogel
4c48f7a143
Replace (semi-)transparent alpha values in BlendTransparencyModifier::class
2025-01-04 10:08:09 +01:00
Oliver Vogel
1c68e5fdf4
Fix incorrect color results after color reduction ( #1410 )
...
* Add tests to verify issue 1409
* Enable GD's ColorProcessor to resolve array color format
* Fix bug when reading colors from palette GDImage
* Add detailed type hint
2025-01-04 08:31:37 +01:00
Oliver Vogel
436460e33b
Fix incorrect resolution conversion ( #1411 )
...
* Assert resolution x/y result
* Fix Resolution conversion
2025-01-04 08:31:13 +01:00
Oliver Vogel
116bd03bc6
Add test for Profile::class
2025-01-02 16:18:54 +01:00
Oliver Vogel
c7ec22602c
Add File::fromPath()
2025-01-02 15:59:36 +01:00
Oliver Vogel
c66fa7dac8
Add 'image/x-jp2-codestream' as Jpeg2000 mime type
2024-12-30 09:45:35 +01:00
Oliver Vogel
8e12c2e152
Add tests
2024-12-28 11:48:09 +01:00
Oliver Vogel
5a1b6f55f8
Refactor RemoveAnimationModifier::class, Add tests
2024-12-28 10:52:08 +01:00
Oliver Vogel
ca067a8fbb
Add tests
2024-12-28 10:15:24 +01:00
Oliver Vogel
8230387f14
Fix bug in PadModifier ( #1408 )
2024-12-27 15:53:08 +01:00
Oliver Vogel
ffd6ccd45d
Rename debug info key for more consistency
2024-12-16 15:40:54 +01:00
Oliver Vogel
92bae6e762
Implement __debugInfo() ( #1406 )
2024-12-14 08:27:56 +01:00
Oliver Vogel
7336dab1d0
Remove whitespace
2024-12-08 08:59:03 +01:00
Oliver Vogel
b9a16d4df6
Optimize tests
2024-12-07 11:38:33 +01:00
Oliver Vogel
a5b1645002
Switch test data providers to generators
2024-11-12 16:15:46 +01:00
Oliver Vogel
dce0cd41fe
Optimize code
2024-11-11 10:44:15 +01:00
Oliver Vogel
b496d1f6b9
Add test assertions to validate the correct mime type
2024-10-27 11:15:54 +01:00
Oliver Vogel
1e0a2b6d76
Add MediaType::fileExtensions() & MediaType::fileExtension()
2024-10-06 17:37:56 +02:00
Oliver Vogel
20ad74ed6b
Add FileExtension::mediaType() & FileExtension::mediaTypes()
2024-10-06 17:28:02 +02:00
Oliver Vogel
57508a5f5a
Add new method Format::fileExtension()
2024-10-06 17:15:16 +02:00
Oliver Vogel
4a5a7f6065
Add method Format::mediaType()
2024-10-06 17:07:06 +02:00
Oliver Vogel
8cf0405a9a
Pass mime type manually to avoid finfo dependency
2024-10-06 16:37:26 +02:00
Oliver Vogel
eff5c7d81a
Change test values
2024-10-06 11:55:01 +02:00
Oliver Vogel
623476d8b0
Change test values
2024-10-06 11:50:15 +02:00
Oliver Vogel
e77a33394c
Switch EncodedImage::class to temporary stream resource
2024-10-06 11:36:17 +02:00
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