Вход Регистрация
Файл: vendor/intervention/image/src/Encoders/JpegEncoder.php
Строк: 37
<?php

declare(strict_types=1);

namespace 
InterventionImageEncoders;

use 
InterventionImageDriversSpecializableEncoder;
use 
InterventionImageExceptionsInvalidArgumentException;

class 
JpegEncoder extends SpecializableEncoder
{
    
/**
     * Create new encoder object.
     *
     * @param null|bool $strip Strip EXIF metadata
     * @throws InvalidArgumentException
     */
    
public function __construct(
        public 
int $quality self::DEFAULT_QUALITY,
        public 
bool $progressive false,
        public ?
bool $strip null,
    ) {
        if (
$quality || $quality 100) {
            throw new 
InvalidArgumentException('Quality must be in range 0 to 100');
        }
    }
}
Онлайн: 1
Реклама