<?php tmpfile(): resource|false
<?php $this->storage = Storage::disk($this->disk); $this->path = FileUploadConfiguration::path($path, false); $tmpFile = tmpfile(); parent::__construct(stream_get_meta_data($tmpFile)['uri'], $this->path);
<?php public function dimensions() { stream_copy_to_stream($this->storage->readStream($this->path), $tmpFile = tmpfile()); return @getimagesize(stream_get_meta_data($tmpFile)['uri']); }