Файл: vendor/intervention/image/src/Drivers/Imagick/Analyzers/PixelColorsAnalyzer.php
Строк: 27
<?php
declare(strict_types=1);
namespace InterventionImageDriversImagickAnalyzers;
use InterventionImageCollection;
use InterventionImageInterfacesImageInterface;
class PixelColorsAnalyzer extends PixelColorAnalyzer
{
public function analyze(ImageInterface $image): mixed
{
$colors = new Collection();
$colorspace = $image->colorspace();
foreach ($image as $frame) {
$colors->push(
parent::colorAt($colorspace, $frame->native())
);
}
return $colors;
}
}