Файл: vendor/intervention/image/src/Drivers/Gd/Analyzers/PixelColorsAnalyzer.php
Строк: 30
<?php
declare(strict_types=1);
namespace InterventionImageDriversGdAnalyzers;
use InterventionImageCollection;
use InterventionImageInterfacesImageInterface;
class PixelColorsAnalyzer extends PixelColorAnalyzer
{
/**
* {@inheritdoc}
*
* @see AnalyzerInterface::analyze()
*/
public function analyze(ImageInterface $image): mixed
{
$colors = new Collection();
$colorProcessor = $this->driver()->colorProcessor($image);
foreach ($image as $frame) {
$colors->push(
parent::colorAt($colorProcessor, $frame),
);
}
return $colors;
}
}