App\Libraries\ImageProcessor::ext PHP Method

ext() public method

public ext ( )
    public function ext()
    {
        $this->parseInput();
        return image_type_to_extension($this->inputDim[2], false);
    }

Usage Example

Example #1
0
 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));
 }
All Usage Examples Of App\Libraries\ImageProcessor::ext