Pimcore\Image\Optimizer::getTempFile PHP Method

getTempFile() protected static method

protected static getTempFile ( string $type = "" ) : string
$type string
return string
    protected static function getTempFile($type = "")
    {
        $file = PIMCORE_SYSTEM_TEMP_DIRECTORY . "/image-optimize-" . uniqid();
        if ($type) {
            $file .= "." . $type;
        }
        return $file;
    }