1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-16 19:58:14 +01:00

69 Commits

Author SHA1 Message Date
Oliver Vogel
c837fc9ffe
Feature/code modernization (#1412)
* Update phpstan dependency version
* Remove unused code
* Optimize code
* Add type hints
* Change property visibility on final classes
* Modernize code
2025-01-05 10:43:14 +01:00
Oliver Vogel
f26e439d61
Update to phpstan v2 2024-11-11 10:44:37 +01:00
ADmad
2763c23bcd Allow PHPUnit 11 2024-10-27 21:15:17 +05:30
Oliver Vogel
e77a33394c
Switch EncodedImage::class to temporary stream resource 2024-10-06 11:36:17 +02:00
Oliver Vogel
d982359ab8
Add Encoder Options for progressive Jpeg & interlaced GIF format 2024-03-27 15:30:28 +01:00
Oliver Vogel
dcc95b8299
PHPUnit 10 Migration (#1302)
* Bump PHPUnit dependencies

* Set return type of base TestCase methods

From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html

* Ignore PHPUnit cache folder

* Adopt PHP attributes in test classes

* Declare data providers as `static`

* Add return types to test methods

* Define test classes as `final`

* Migrate phpunit.xml to phpunit 10

* Correct phpunit attribute class name

* Rename base test class

* Restructure test folders

* Fix test image paths

* Only set rules for php files in .editorconfig

* Remove php unit flag in local test env

---------

Co-authored-by: Shift <shift@laravelshift.com>
2024-02-28 16:16:23 +01:00
Oliver Vogel
0884461b4c
Install slevomat/coding-standard as dev dependency 2024-01-29 19:31:35 +01:00
Oliver Vogel
33bd4b09a8
Update minimum required version of intervention/gif 2024-01-27 15:43:24 +01:00
Sibin Grasic
b2b8581880
revert(deps): PHPCS-Plugin installer package removed 2024-01-18 12:50:42 +01:00
Sibin Grasic
487b176201
chore: Added PHPCS and config 2024-01-17 22:40:05 +01:00
Oliver Vogel
aafc9b624d Add recommendation for ext-exif 2024-01-12 13:09:27 +01:00
Oliver Vogel
72afbe47cf Increase version number of intervention/gif 2024-01-04 12:33:22 +01:00
Oliver Vogel
1b5a0b8642 Add mbstring extension as dependency 2023-12-09 08:38:40 +01:00
Oliver Vogel
48111cf7a4 Remove minimum-stability setting 2023-12-01 16:30:10 +01:00
Oliver Vogel
f285a1a134 Change dependency version of intervention/gif 2023-12-01 16:27:04 +01:00
Oliver Vogel
8b8bcb0d9c Remove MimeSniffer dependency 2023-11-12 11:32:08 +01:00
Oliver Vogel
09aa08904c Add keyword to composer.json 2023-10-21 10:24:14 +02:00
Oliver Vogel
a3494a80ce Remove laravel keyword 2023-10-21 10:23:32 +02:00
Oliver Vogel
c236947be6 Update mockery version number 2023-10-21 10:22:42 +02:00
Oliver Vogel
af2ee6c11e Add avif encoding 2023-10-03 17:24:52 +02:00
Oliver Vogel
33be0b1b78 Change minimum plattform requirement 2023-06-09 15:58:29 +02:00
Oliver Vogel
1cfbdf8d24 Add phpstan to dev-dependencies 2022-05-21 20:04:33 +02:00
Oliver Vogel
977dbd0734 Changed email address 2022-04-19 19:50:26 +02:00
Oliver Vogel
e78d2d75f3 Changed scheme of website address 2022-04-19 19:20:13 +02:00
Oliver Vogel
87267764b9 Added minimum-stability 2022-01-02 10:25:40 +01:00
Oliver Vogel
d47e83fc0e Version contraint for intervention/gif 2022-01-02 10:21:10 +01:00
Oliver Vogel
228189b82e Added progress from last month
Refined ResizeModifier tests

Added AbstracImageTest

AbstracImageTest

AbstracImageTest

Added AbstractColorTest

FitModifierTests

Changed preserve transparency logic in PadModifier

PSR fix

Imagick PadModifier

FillModifier

Added imagesavealpha when decoding new gd images

Added ImageFactory::newCore()

ImageFactory

Imagick PadModifier

FillModifier

Fixed Jpeg Quality paramter

Fixed Encoder Parameters

PHP 8 only

Added PixelateModifiers

Removed dev from gitignore

Added RgbStringColorDecoder for Imagick Driver

Fixed lost transparency on FillModifier

Changed default PadModifier backgroud to white

Size & Resizer Refactoring

Refactored ResizeModifiers

Refactored FitModifiers

Refactored PadModifier

Changed resize & scale signatures

Refactored ResizeModifiers

Refactored ImageManager

Added Constructor property promotion

Added ImageObjectDecoder

Fixed bugs

Added default value for Image::blur()

Added methods to image interface

Renamed Image::loops() to Image::getLoops()

Renamed Image::width() and Image::height() to getWidth(), getHeight()

Changed exception texts and type

RotateModifiers

Added DestroyModifiers

Added SharpenModifier

Added methods

Added InvertModifiers

Added Collection::query

Added default value to Collection::get

Added brightness modifiers

Added contrast modifiers

Added readme.md
2021-12-19 16:22:01 +01:00
Oliver Vogel
66d12c74a2 PHP 7.4 support 2021-11-05 18:12:20 +00:00
Oliver Vogel
95e72b877b Version 3 prototype 2021-10-21 14:32:05 +02:00
Oliver Vogel
b225cb1915
Merge pull request #1055 from freshleafmedia/travis/php7.4
Adds PHP 7.4 to the Travis build
2021-07-05 18:26:52 +02:00
Moamen Eltouny
8285741c76
Update composer.json 2021-07-02 12:51:20 +02:00
freshleafmedia
f9a78a2ea4 Bumps the PHPUnit version to support PHP 7.4 and fixes test 2020-11-16 14:12:31 +00:00
Tom Witkowski
3fcd65ce2b
Update composer.json 2017-12-11 15:05:38 +01:00
Oliver Vogel
17089e2a52 Merge pull request #750 from dhensby/pulls/travisfix
Get travis working
2017-07-03 12:46:14 +02:00
Oliver Vogel
ef5d12c048 changed url 2017-06-30 17:52:27 +02:00
Daniel Hensby
9575e39f9e
Bump PHP unit versions 2017-06-28 19:26:01 +01:00
Oliver Vogel
274403ce35 Support Laravel Auto-Discovery 2017-06-07 19:18:28 +02:00
Barry vd. Heuvel
a0d3df22de Update composer.json 2015-07-10 16:44:25 +02:00
Wolfy-J
cce7d4088c composer.json fixed 2015-06-28 18:47:15 +03:00
Wolfy-J
2549f2b574 PHP 5.3 support dropped, let's see what author will say. 2015-06-28 17:14:56 +03:00
Wolfy-J
ab4f94de42 Response and stream commads added. 2015-06-28 16:36:06 +03:00
Oliver Vogel
6069f5e283 psr-4 2014-09-25 18:42:12 +02:00
Johnson
67c7c28360 Use Mockery 0.9.2 instead of @dev 2014-09-06 09:29:33 +10:00
Oliver Vogel
18fde302da changed description 2014-09-02 20:28:51 +02:00
Johnson
2615e0d3fc Use Mockery at 0.9.x@dev
An issue in Mockery (https://github.com/padraic/mockery/issues/348)
prevented SplFileInfo classes from being mocked.

This commit changes the Mockery version requirement to 0.9.x@dev, as it has been
fixed in master, but not yet tagged as a release.
2014-08-28 09:37:53 +10:00
Oliver Vogel
2fb5e286e4 removed illuminate depedencies 2014-08-06 20:37:17 +02:00
Sági-Kazár Márk
2c61389c6e Moves laravel dependencies to require-dev/suggest 2014-08-06 19:10:14 +02:00
Oliver Vogel
98ad1958a2 changed minimum-stability 2014-06-08 16:54:42 +02:00
Oliver Vogel
0540ed377e dependency adjustments 2014-05-17 23:57:42 +02:00
Oliver Vogel
3bf1fbef41 added imagick keyword 2014-05-14 15:44:50 +02:00