1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 05:11:42 +02:00

Composer update

This commit is contained in:
Cameron
2022-05-29 12:08:49 -07:00
parent 8ec6e3a0dd
commit 5ddc27766d
11 changed files with 123 additions and 123 deletions

View File

@@ -7,8 +7,8 @@
"authors": [
{
"name": "Oliver Vogel",
"email": "oliver@olivervogel.com",
"homepage": "http://olivervogel.com/"
"email": "oliver@intervention.io",
"homepage": "https://intervention.io/"
}
],
"require": {

View File

@@ -71,7 +71,7 @@ abstract class AbstractDecoder
'method'=>"GET",
'protocol_version'=>1.1, // force use HTTP 1.1 for service mesh environment with envoy
'header'=>"Accept-language: en\r\n".
"User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2\r\n"
"User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36\r\n"
]
];

View File

@@ -44,7 +44,7 @@ class ResizeCommand extends AbstractCommand
protected function modify($image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h)
{
// create new image
$modified = imagecreatetruecolor($dst_w, $dst_h);
$modified = imagecreatetruecolor(intval($dst_w), intval($dst_h));
// get current image
$resource = $image->getCore();
@@ -70,8 +70,8 @@ class ResizeCommand extends AbstractCommand
$dst_y,
$src_x,
$src_y,
$dst_w,
$dst_h,
intval($dst_w),
intval($dst_h),
$src_w,
$src_h
);

View File

@@ -13,7 +13,7 @@ use Psr\Http\Message\StreamInterface;
* @method \Intervention\Image\Image brightness(int $level) Changes the brightness of the current image by the given level. Use values between -100 for min. brightness. 0 for no change and +100 for max. brightness.
* @method \Intervention\Image\Image cache(\Closure $callback, int $lifetime = null, boolean $returnObj = false) Method to create a new cached image instance from a Closure callback. Pass a lifetime in minutes for the callback and decide whether you want to get an Intervention Image instance as return value or just receive the image stream.
* @method \Intervention\Image\Image canvas(int $width, int $height, mixed $bgcolor = null) Factory method to create a new empty image instance with given width and height. You can define a background-color optionally. By default the canvas background is transparent.
* @method \Intervention\Image\Image circle(int $radius, int $x, int $y, \Closure $callback = null) Draw a circle at given x, y, coordinates with given radius. You can define the appearance of the circle by an optional closure callback.
* @method \Intervention\Image\Image circle(int $diameter, int $x, int $y, \Closure $callback = null) Draw a circle at given x, y, coordinates with given diameter. You can define the appearance of the circle by an optional closure callback.
* @method \Intervention\Image\Image colorize(int $red, int $green, int $blue) Change the RGB color values of the current image on the given channels red, green and blue. The input values are normalized so you have to include parameters from 100 for maximum color value. 0 for no change and -100 to take out all the certain color on the image.
* @method \Intervention\Image\Image contrast(int $level) Changes the contrast of the current image by the given level. Use values between -100 for min. contrast 0 for no change and +100 for max. contrast.
* @method \Intervention\Image\Image crop(int $width, int $height, int $x = null, int $y = null) Cut out a rectangular part of the current image with given width and height. Define optional x,y coordinates to move the top-left corner of the cutout to a certain position.

View File

@@ -265,7 +265,7 @@ class Color extends AbstractColor
}
/**
* Calculates RGA integer alpha value into float value
* Calculates RGBA integer alpha value into float value
*
* @param int $value
* @return float

View File

@@ -19,7 +19,7 @@ class PixelateCommand extends AbstractCommand
$width = $image->getWidth();
$height = $image->getHeight();
$image->getCore()->scaleImage(max(1, ($width / $size)), max(1, ($height / $size)));
$image->getCore()->scaleImage(max(1, intval($width / $size)), max(1, intval($height / $size)));
$image->getCore()->scaleImage($width, $height);
return true;

View File

@@ -71,7 +71,7 @@ class Size
*/
public function getWidth()
{
return $this->width;
return intval($this->width);
}
/**
@@ -81,7 +81,7 @@ class Size
*/
public function getHeight()
{
return $this->height;
return intval($this->height);
}
/**