public function ext()
{
$this->parseInput();
return image_type_to_extension($this->inputDim[2], false);
}
public function storeFile($filePath) { $image = new ImageProcessor($filePath, $this->maxDimensions, $this->maxFileSize); $image->process(); $this->deleteFile(); $this->hash = hash_file('sha256', $image->inputPath); $this->ext = $image->ext(); $this->storage()->put($this->filePath(), file_get_contents($image->inputPath)); }