public function copyMemory(): Image
    {
        Utils::debugLog('copyMemory', [
            'instance' => $this,
            'arguments' => []
        ]);

        $result = vips_image_copy_memory($this->image);
        if ($result === -1) {
            self::errorVips();
        }
        $result = self::wrapResult($result);

        Utils::debugLog('copyMemory', ['result' => $result]);

        return $result;
    }
public function copyMemory(): Image
    {
        Utils::debugLog('copyMemory', [
            'instance' => $this,
            'arguments' => []
        ]);

        $result = vips_image_copy_memory($this->image);
        if ($result === -1) {
            self::errorVips();
        }
        $result = self::wrapResult($result);

        Utils::debugLog('copyMemory', ['result' => $result]);

        return $result;
    }
public function copyMemory ( ) : Image { Utils :: debugLog ( 'copyMemory' , [ 'instance' => $ this , 'arguments' => [ ] ] ) ; $ result = vips_image_copy_memory ( $ this -> image ) ; if ( $ result === - 1 ) { self :: errorVips ( ) ; } $ result = self :: wrapResult ( $ result ) ; Utils :: debugLog ( 'copyMemory' , [ 'result' => $ result ] ) ; return $ result ; }
Copy to memory.

An area of memory large enough to hold the complete image is allocated,
the image is rendered into it, and a new Image is returned which wraps
this memory area.

This is useful for ending a pipeline and starting a new random access
one, but can obviously use a lot of memory if the image is large.

@throws Exception

@return Image A new Image.
Copy to memory .