mirror of
https://github.com/Intervention/image.git
synced 2025-08-24 14:32:52 +02:00
Fix merging diffs
This commit is contained in:
@@ -5,11 +5,12 @@ namespace Intervention\Image\Drivers\Gd\Modifiers;
|
|||||||
use Intervention\Image\Drivers\DriverSpecialized;
|
use Intervention\Image\Drivers\DriverSpecialized;
|
||||||
use Intervention\Image\Drivers\Gd\Cloner;
|
use Intervention\Image\Drivers\Gd\Cloner;
|
||||||
use Intervention\Image\Interfaces\ImageInterface;
|
use Intervention\Image\Interfaces\ImageInterface;
|
||||||
|
use Intervention\Image\Interfaces\ModifierInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property mixed $color
|
* @property mixed $color
|
||||||
*/
|
*/
|
||||||
class BlendTransparencyModifier extends DriverSpecialized
|
class BlendTransparencyModifier extends DriverSpecialized implements ModifierInterface
|
||||||
{
|
{
|
||||||
public function apply(ImageInterface $image): ImageInterface
|
public function apply(ImageInterface $image): ImageInterface
|
||||||
{
|
{
|
||||||
|
@@ -10,6 +10,7 @@ use Intervention\Image\Drivers\Gd\Cloner;
|
|||||||
use Intervention\Image\Interfaces\ColorInterface;
|
use Intervention\Image\Interfaces\ColorInterface;
|
||||||
use Intervention\Image\Interfaces\FrameInterface;
|
use Intervention\Image\Interfaces\FrameInterface;
|
||||||
use Intervention\Image\Interfaces\ImageInterface;
|
use Intervention\Image\Interfaces\ImageInterface;
|
||||||
|
use Intervention\Image\Interfaces\ModifierInterface;
|
||||||
use Intervention\Image\Interfaces\SizeInterface;
|
use Intervention\Image\Interfaces\SizeInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -20,7 +21,7 @@ use Intervention\Image\Interfaces\SizeInterface;
|
|||||||
* @property mixed $background
|
* @property mixed $background
|
||||||
* @property string $position
|
* @property string $position
|
||||||
*/
|
*/
|
||||||
class ContainModifier extends DriverSpecialized
|
class ContainModifier extends DriverSpecialized implements ModifierInterface
|
||||||
{
|
{
|
||||||
public function apply(ImageInterface $image): ImageInterface
|
public function apply(ImageInterface $image): ImageInterface
|
||||||
{
|
{
|
||||||
|
@@ -6,13 +6,14 @@ use Intervention\Image\Drivers\DriverSpecialized;
|
|||||||
use Intervention\Image\Drivers\Gd\Cloner;
|
use Intervention\Image\Drivers\Gd\Cloner;
|
||||||
use Intervention\Image\Interfaces\FrameInterface;
|
use Intervention\Image\Interfaces\FrameInterface;
|
||||||
use Intervention\Image\Interfaces\ImageInterface;
|
use Intervention\Image\Interfaces\ImageInterface;
|
||||||
|
use Intervention\Image\Interfaces\ModifierInterface;
|
||||||
use Intervention\Image\Interfaces\SizeInterface;
|
use Intervention\Image\Interfaces\SizeInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @method SizeInterface getResizeSize(ImageInterface $image)
|
* @method SizeInterface getResizeSize(ImageInterface $image)
|
||||||
* @method SizeInterface getCropSize(ImageInterface $image)
|
* @method SizeInterface getCropSize(ImageInterface $image)
|
||||||
*/
|
*/
|
||||||
class CoverModifier extends DriverSpecialized
|
class CoverModifier extends DriverSpecialized implements ModifierInterface
|
||||||
{
|
{
|
||||||
public function apply(ImageInterface $image): ImageInterface
|
public function apply(ImageInterface $image): ImageInterface
|
||||||
{
|
{
|
||||||
|
@@ -6,6 +6,7 @@ use Intervention\Image\Drivers\DriverSpecialized;
|
|||||||
use Intervention\Image\Drivers\Gd\Cloner;
|
use Intervention\Image\Drivers\Gd\Cloner;
|
||||||
use Intervention\Image\Interfaces\FrameInterface;
|
use Intervention\Image\Interfaces\FrameInterface;
|
||||||
use Intervention\Image\Interfaces\ImageInterface;
|
use Intervention\Image\Interfaces\ImageInterface;
|
||||||
|
use Intervention\Image\Interfaces\ModifierInterface;
|
||||||
use Intervention\Image\Interfaces\SizeInterface;
|
use Intervention\Image\Interfaces\SizeInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -14,7 +15,7 @@ use Intervention\Image\Interfaces\SizeInterface;
|
|||||||
* @property int $offset_y
|
* @property int $offset_y
|
||||||
* @property mixed $background
|
* @property mixed $background
|
||||||
*/
|
*/
|
||||||
class CropModifier extends DriverSpecialized
|
class CropModifier extends DriverSpecialized implements ModifierInterface
|
||||||
{
|
{
|
||||||
public function apply(ImageInterface $image): ImageInterface
|
public function apply(ImageInterface $image): ImageInterface
|
||||||
{
|
{
|
||||||
|
@@ -6,12 +6,13 @@ use Intervention\Image\Drivers\DriverSpecialized;
|
|||||||
use Intervention\Image\Drivers\Gd\Cloner;
|
use Intervention\Image\Drivers\Gd\Cloner;
|
||||||
use Intervention\Image\Exceptions\InputException;
|
use Intervention\Image\Exceptions\InputException;
|
||||||
use Intervention\Image\Interfaces\ImageInterface;
|
use Intervention\Image\Interfaces\ImageInterface;
|
||||||
|
use Intervention\Image\Interfaces\ModifierInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property int $limit
|
* @property int $limit
|
||||||
* @property mixed $background
|
* @property mixed $background
|
||||||
*/
|
*/
|
||||||
class QuantizeColorsModifier extends DriverSpecialized
|
class QuantizeColorsModifier extends DriverSpecialized implements ModifierInterface
|
||||||
{
|
{
|
||||||
public function apply(ImageInterface $image): ImageInterface
|
public function apply(ImageInterface $image): ImageInterface
|
||||||
{
|
{
|
||||||
|
@@ -10,13 +10,14 @@ use Intervention\Image\Drivers\Gd\Cloner;
|
|||||||
use Intervention\Image\Interfaces\ColorInterface;
|
use Intervention\Image\Interfaces\ColorInterface;
|
||||||
use Intervention\Image\Interfaces\FrameInterface;
|
use Intervention\Image\Interfaces\FrameInterface;
|
||||||
use Intervention\Image\Interfaces\ImageInterface;
|
use Intervention\Image\Interfaces\ImageInterface;
|
||||||
|
use Intervention\Image\Interfaces\ModifierInterface;
|
||||||
use Intervention\Image\Interfaces\SizeInterface;
|
use Intervention\Image\Interfaces\SizeInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @method SizeInterface cropSize(ImageInterface $image)
|
* @method SizeInterface cropSize(ImageInterface $image)
|
||||||
* @property mixed $background
|
* @property mixed $background
|
||||||
*/
|
*/
|
||||||
class ResizeCanvasModifier extends DriverSpecialized
|
class ResizeCanvasModifier extends DriverSpecialized implements ModifierInterface
|
||||||
{
|
{
|
||||||
public function apply(ImageInterface $image): ImageInterface
|
public function apply(ImageInterface $image): ImageInterface
|
||||||
{
|
{
|
||||||
|
@@ -6,13 +6,14 @@ use Intervention\Image\Drivers\DriverSpecialized;
|
|||||||
use Intervention\Image\Drivers\Gd\Cloner;
|
use Intervention\Image\Drivers\Gd\Cloner;
|
||||||
use Intervention\Image\Interfaces\FrameInterface;
|
use Intervention\Image\Interfaces\FrameInterface;
|
||||||
use Intervention\Image\Interfaces\ImageInterface;
|
use Intervention\Image\Interfaces\ImageInterface;
|
||||||
|
use Intervention\Image\Interfaces\ModifierInterface;
|
||||||
use Intervention\Image\Interfaces\SizeInterface;
|
use Intervention\Image\Interfaces\SizeInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property null|int $width
|
* @property null|int $width
|
||||||
* @property null|int $height
|
* @property null|int $height
|
||||||
*/
|
*/
|
||||||
class ResizeModifier extends DriverSpecialized
|
class ResizeModifier extends DriverSpecialized implements ModifierInterface
|
||||||
{
|
{
|
||||||
public function apply(ImageInterface $image): ImageInterface
|
public function apply(ImageInterface $image): ImageInterface
|
||||||
{
|
{
|
||||||
|
@@ -11,12 +11,13 @@ use Intervention\Image\Geometry\Rectangle;
|
|||||||
use Intervention\Image\Interfaces\ColorInterface;
|
use Intervention\Image\Interfaces\ColorInterface;
|
||||||
use Intervention\Image\Interfaces\FrameInterface;
|
use Intervention\Image\Interfaces\FrameInterface;
|
||||||
use Intervention\Image\Interfaces\ImageInterface;
|
use Intervention\Image\Interfaces\ImageInterface;
|
||||||
|
use Intervention\Image\Interfaces\ModifierInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @method mixed rotationAngle()
|
* @method mixed rotationAngle()
|
||||||
* @property mixed $background
|
* @property mixed $background
|
||||||
*/
|
*/
|
||||||
class RotateModifier extends DriverSpecialized
|
class RotateModifier extends DriverSpecialized implements ModifierInterface
|
||||||
{
|
{
|
||||||
public function apply(ImageInterface $image): ImageInterface
|
public function apply(ImageInterface $image): ImageInterface
|
||||||
{
|
{
|
||||||
|
@@ -2,14 +2,15 @@
|
|||||||
|
|
||||||
namespace Intervention\Image\Drivers\Gd\Modifiers;
|
namespace Intervention\Image\Drivers\Gd\Modifiers;
|
||||||
|
|
||||||
use Intervention\Image\Drivers\DriverSpecializedModifier;
|
use Intervention\Image\Drivers\DriverSpecialized;
|
||||||
use Intervention\Image\Interfaces\ImageInterface;
|
use Intervention\Image\Interfaces\ImageInterface;
|
||||||
|
use Intervention\Image\Interfaces\ModifierInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property int $offset
|
* @property int $offset
|
||||||
* @property null|int $length
|
* @property null|int $length
|
||||||
*/
|
*/
|
||||||
class SliceAnimationModifier extends DriverSpecializedModifier
|
class SliceAnimationModifier extends DriverSpecialized implements ModifierInterface
|
||||||
{
|
{
|
||||||
public function apply(ImageInterface $image): ImageInterface
|
public function apply(ImageInterface $image): ImageInterface
|
||||||
{
|
{
|
||||||
|
@@ -5,11 +5,12 @@ namespace Intervention\Image\Drivers\Imagick\Modifiers;
|
|||||||
use Imagick;
|
use Imagick;
|
||||||
use Intervention\Image\Drivers\DriverSpecialized;
|
use Intervention\Image\Drivers\DriverSpecialized;
|
||||||
use Intervention\Image\Interfaces\ImageInterface;
|
use Intervention\Image\Interfaces\ImageInterface;
|
||||||
|
use Intervention\Image\Interfaces\ModifierInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property mixed $color
|
* @property mixed $color
|
||||||
*/
|
*/
|
||||||
class BlendTransparencyModifier extends DriverSpecialized
|
class BlendTransparencyModifier extends DriverSpecialized implements ModifierInterface
|
||||||
{
|
{
|
||||||
public function apply(ImageInterface $image): ImageInterface
|
public function apply(ImageInterface $image): ImageInterface
|
||||||
{
|
{
|
||||||
|
@@ -2,14 +2,15 @@
|
|||||||
|
|
||||||
namespace Intervention\Image\Drivers\Imagick\Modifiers;
|
namespace Intervention\Image\Drivers\Imagick\Modifiers;
|
||||||
|
|
||||||
use Intervention\Image\Drivers\DriverSpecializedModifier;
|
use Intervention\Image\Drivers\DriverSpecialized;
|
||||||
use Intervention\Image\Interfaces\ImageInterface;
|
use Intervention\Image\Interfaces\ImageInterface;
|
||||||
|
use Intervention\Image\Interfaces\ModifierInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property int $offset
|
* @property int $offset
|
||||||
* @property null|int $length
|
* @property null|int $length
|
||||||
*/
|
*/
|
||||||
class SliceAnimationModifier extends DriverSpecializedModifier
|
class SliceAnimationModifier extends DriverSpecialized implements ModifierInterface
|
||||||
{
|
{
|
||||||
public function apply(ImageInterface $image): ImageInterface
|
public function apply(ImageInterface $image): ImageInterface
|
||||||
{
|
{
|
||||||
|
@@ -2,9 +2,8 @@
|
|||||||
|
|
||||||
namespace Intervention\Image\Encoders;
|
namespace Intervention\Image\Encoders;
|
||||||
|
|
||||||
class HeicEncoder extends AbstractEncoder
|
use Intervention\Image\Interfaces\SpecializableInterface;
|
||||||
|
|
||||||
|
class HeicEncoder extends AbstractEncoder implements SpecializableInterface
|
||||||
{
|
{
|
||||||
public function __construct(public int $quality = 75)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -985,9 +985,9 @@ final class Image implements ImageInterface
|
|||||||
*
|
*
|
||||||
* @see ImageInterface::toHeic()
|
* @see ImageInterface::toHeic()
|
||||||
*/
|
*/
|
||||||
public function toHeic(int $quality = 75): EncodedImageInterface
|
public function toHeic(mixed ...$options): EncodedImageInterface
|
||||||
{
|
{
|
||||||
return $this->encode(new HeicEncoder($quality));
|
return $this->encode(new HeicEncoder(...$options));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user