Вход Регистрация
Файл: vendor/intervention/image/src/Drivers/Gd/Analyzers/WidthAnalyzer.php
Строк: 39
<?php

declare(strict_types=1);

namespace 
InterventionImageDriversGdAnalyzers;

use 
InterventionImageAnalyzersWidthAnalyzer as GenericWidthAnalyzer;
use 
InterventionImageInterfacesImageInterface;
use 
InterventionImageInterfacesSpecializedInterface;

class 
WidthAnalyzer extends GenericWidthAnalyzer implements SpecializedInterface
{
    
/**
     * {@inheritdoc}
     *
     * @see AnalyzerInterface::analyze()
     */
    
public function analyze(ImageInterface $image): mixed
    
{
        return 
imagesx($image->core()->native());
    }
}
Онлайн: 2
Реклама