public function make(File $file, array $addInfo = [])
{
if ($this->isAvailable($file->mime) !== true) {
throw new NotAvailableException();
}
$image = $this->createModel($file);
if (!$image->meta) {
list($width, $height) = $this->extractDimension($image);
$meta = $image->meta()->create(array_merge(['width' => $width, 'height' => $height], $addInfo));
$image->setRelation('meta', $meta);
}
return $image;
}