23 lines
558 B
PHP
23 lines
558 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Intervention\Image\Drivers\Gd\Analyzers;
|
|
|
|
use Intervention\Image\Analyzers\HeightAnalyzer as GenericHeightAnalyzer;
|
|
use Intervention\Image\Interfaces\ImageInterface;
|
|
use Intervention\Image\Interfaces\SpecializedInterface;
|
|
|
|
class HeightAnalyzer extends GenericHeightAnalyzer implements SpecializedInterface
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*
|
|
* @see AnalyzerInterface::analyze()
|
|
*/
|
|
public function analyze(ImageInterface $image): mixed
|
|
{
|
|
return imagesy($image->core()->native());
|
|
}
|
|
}
|