Image

Illuminate\Image\Image

class src/Illuminate/Image/Image.php

__construct

v13.20.0 から

__construct(Closure|string $contents, ?Illuminate\Http\UploadedFile $file = null)
  1. v13.20.0 追加
    変更後
    __construct(Closure|string $contents, ?Illuminate\Http\UploadedFile $file = null)

__serialize

v13.20.0 から

__serialize(): never
  1. v13.20.0 追加
    変更後
    __serialize(): never

__toString

v13.20.0 から

__toString(): string
  1. v13.20.0 追加
    変更後
    __toString(): string

blur

v13.20.0 から

blur(int $amount = 5): static
@param int<0, 100> $amount
  1. v13.20.0 追加
    変更後
    blur(int $amount = 5): static [@param int<0, 100> $amount]

contain

v13.20.0 から

contain(int $width, int $height, ?string $background = null): static
@param int<1, max> $width
@param int<1, max> $height
  1. v13.20.0 追加
    変更後
    contain(int $width, int $height, ?string $background = null): static [@param int<1, max> $width, @param int<1, max> $height]

cover

v13.20.0 から

cover(int $width, int $height): static
@param int<1, max> $width
@param int<1, max> $height
  1. v13.20.0 追加
    変更後
    cover(int $width, int $height): static [@param int<1, max> $width, @param int<1, max> $height]

crop

v13.20.0 から

crop(int $width, int $height, int $x = 0, int $y = 0): static
@param int<1, max> $width
@param int<1, max> $height
  1. v13.20.0 追加
    変更後
    crop(int $width, int $height, int $x = 0, int $y = 0): static [@param int<1, max> $width, @param int<1, max> $height]

dimensions

v13.20.0 から

dimensions(): array
@return array{0: int, 1: int}
  1. v13.20.0 追加
    変更後
    dimensions(): array [@return array{0: int, 1: int}]

dominantColor

v13.24.0 から

dominantColor(): string
  1. v13.24.0 追加
    変更後
    dominantColor(): string

extension

v13.20.0 から

extension(): string
  1. v13.20.0 追加
    変更後
    extension(): string

file

v13.20.0 から

file(): ?Illuminate\Http\UploadedFile
  1. v13.20.0 追加
    変更後
    file(): ?Illuminate\Http\UploadedFile

flip

v13.20.0 から

flip(): static
  1. v13.20.0 追加
    変更後
    flip(): static

flipHorizontally

v13.20.0 から

flipHorizontally(): static
  1. v13.20.0 追加
    変更後
    flipHorizontally(): static

flipVertically

v13.20.0 から

flipVertically(): static
  1. v13.20.0 追加
    変更後
    flipVertically(): static

flop

v13.20.0 から

flop(): static
  1. v13.20.0 追加
    変更後
    flop(): static

grayscale

v13.20.0 から

grayscale(): static
  1. v13.20.0 追加
    変更後
    grayscale(): static

hashName

v13.20.0 から

hashName(string $path = ''): string
  1. v13.20.0 追加
    変更後
    hashName(string $path = ''): string

height

v13.20.0 から

height(): int
  1. v13.20.0 追加
    変更後
    height(): int

mimeType

v13.20.0 から

mimeType(): string
  1. v13.20.0 追加
    変更後
    mimeType(): string

optimize

v13.20.0 から

optimize(string $format = 'webp', int $quality = \Illuminate\Image\ImageOutputOptions::DEFAULT_QUALITY): static
  1. v13.20.0 追加
    変更後
    optimize(string $format = 'webp', int $quality = \Illuminate\Image\ImageOutputOptions::DEFAULT_QUALITY): static

orient

v13.20.0 から

orient(): static
  1. v13.20.0 追加
    変更後
    orient(): static

quality

v13.20.0 から

quality(int $quality): static
@param int<1, 100> $quality
  1. v13.20.0 追加
    変更後
    quality(int $quality): static [@param int<1, 100> $quality]

resize

v13.20.0 から

resize(?int $width = null, ?int $height = null): static
@param int<1, max>|null $width
@param int<1, max>|null $height
  1. v13.20.0 追加
    変更後
    resize(?int $width = null, ?int $height = null): static [@param int<1, max>|null $width, @param int<1, max>|null $height]

rotate

v13.20.0 から

rotate(float $angle, ?string $background = null): static
  1. v13.20.0 追加
    変更後
    rotate(float $angle, ?string $background = null): static

scale

v13.20.0 から

scale(?int $width = null, ?int $height = null): static
@param int<1, max>|null $width
@param int<1, max>|null $height
  1. v13.20.0 追加
    変更後
    scale(?int $width = null, ?int $height = null): static [@param int<1, max>|null $width, @param int<1, max>|null $height]

sharpen

v13.20.0 から

sharpen(int $amount = 10): static
@param int<0, 100> $amount
  1. v13.20.0 追加
    変更後
    sharpen(int $amount = 10): static [@param int<0, 100> $amount]

store

v13.20.0 から

store(string $path = '', ?string $disk = null, array $options = []): string|false
@param array<string, mixed> $options
  1. v13.20.0 追加
    変更後
    store(string $path = '', ?string $disk = null, array $options = []): string|false [@param array<string, mixed> $options]

storeAs

v13.20.0 から

storeAs(string $path, ?string $name = null, ?string $disk = null, array $options = []): string|false
@param array<string, mixed> $options
  1. v13.20.0 追加
    変更後
    storeAs(string $path, ?string $name = null, ?string $disk = null, array $options = []): string|false [@param array<string, mixed> $options]

storePublicly

v13.20.0 から

storePublicly(string $path = '', ?string $disk = null, array $options = []): string|false
@param array<string, mixed> $options
  1. v13.20.0 追加
    変更後
    storePublicly(string $path = '', ?string $disk = null, array $options = []): string|false [@param array<string, mixed> $options]

storePubliclyAs

v13.20.0 から

storePubliclyAs(string $path, ?string $name = null, ?string $disk = null, array $options = []): string|false
@param array<string, mixed> $options
  1. v13.20.0 追加
    変更後
    storePubliclyAs(string $path, ?string $name = null, ?string $disk = null, array $options = []): string|false [@param array<string, mixed> $options]

toAvif

v13.21.0 から

toAvif(): static
  1. v13.21.0 追加
    変更後
    toAvif(): static

toBase64

v13.20.0 から

toBase64(): string
  1. v13.20.0 追加
    変更後
    toBase64(): string

toBmp

v13.21.0 から

toBmp(): static
  1. v13.21.0 追加
    変更後
    toBmp(): static

toBytes

v13.20.0 から

toBytes(): string
  1. v13.20.0 追加
    変更後
    toBytes(): string

toDataUri

v13.20.0 から

toDataUri(): string
  1. v13.20.0 追加
    変更後
    toDataUri(): string

toFormat

v13.25.0 から

toFormat(string $format): static
  1. v13.25.0 追加
    変更後
    toFormat(string $format): static

toGif

v13.21.0 から

toGif(): static
  1. v13.21.0 追加
    変更後
    toGif(): static

toHeic

v13.24.0 から

toHeic(): static
  1. v13.24.0 追加
    変更後
    toHeic(): static

toJpeg

v13.20.0 から

toJpeg(): static
  1. v13.20.0 追加
    変更後
    toJpeg(): static

toJpg

v13.20.0 から

toJpg(): static
  1. v13.20.0 追加
    変更後
    toJpg(): static

toJxl

v13.37.0 から

toJxl(): static
  1. v13.37.0 追加
    変更後
    toJxl(): static

toPng

v13.21.0 から

toPng(): static
  1. v13.21.0 追加
    変更後
    toPng(): static

toResponse

v13.25.0 から

toResponse($request): Illuminate\Http\Response
@param \Illuminate\Http\Request $request
  1. v13.25.0 追加
    変更後
    toResponse($request): Illuminate\Http\Response [@param \Illuminate\Http\Request $request]

toString

v13.20.0 から

toString(): string
  1. v13.20.0 追加
    変更後
    toString(): string

toWebp

v13.20.0 から

toWebp(): static
  1. v13.20.0 追加
    変更後
    toWebp(): static

transform

v13.20.0 から

transform(Illuminate\Contracts\Image\Transformation $transformation): static
  1. v13.20.0 追加
    変更後
    transform(Illuminate\Contracts\Image\Transformation $transformation): static

using

v13.20.0 から

using(string $driver): static
  1. v13.20.0 追加
    変更後
    using(string $driver): static

usingGd

v13.20.0 から

usingGd(): static
  1. v13.20.0 追加
    変更後
    usingGd(): static

usingImagick

v13.20.0 から

usingImagick(): static
  1. v13.20.0 追加
    変更後
    usingImagick(): static

width

v13.20.0 から

width(): int
  1. v13.20.0 追加
    変更後
    width(): int