src/Sulu/Bundle/MediaBundle/Media/ImageConverter/MediaImageExtractor.php
private function createTemporaryResource(string $content)
    {
        $tempResource = fopen('php://memory', 'r+');
        fwrite($tempResource, $content);
        rewind($tempResource);

        return $tempResource;
    }
private function createTemporaryResource(string $content)
    {
        $tempResource = fopen('php://memory', 'r+');
        fwrite($tempResource, $content);
        rewind($tempResource);

        return $tempResource;
    }
private function createTemporaryResource ( string $ content ) { $ tempResource = fopen ( 'php://memory' , 'r+' ) ; fwrite ( $ tempResource , $ content ) ; rewind ( $ tempResource ) ; return $ tempResource ; }
Create temporary resource which will removed on fclose or end of process.

@param string $content

@return resource
Create temporary resource which will removed on fclose or end of process .