<?php
declare(strict_types=1);
namespace InterventionImageColors;
use InterventionImageFile;
use InterventionImageInterfacesProfileInterface;
class Profile extends File implements ProfileInterface
{
/**
* Create color profile instance from given path in file system.
*/
public static function fromPath(string $path): self
{
$stream = fopen(self::readableFilePathOrFail($path), 'r');
return new self($stream);
}
}