Imagine File doesn't exist

I’m using Imagine file extension for uploading image,but getting error





Imagine\Exception\InvalidArgumentException


File doesn't exist




1. in C:\xampp\htdocs\myprojoect\vendor\imagine\imagine\lib\Imagine\Gd\Imagine.php at line 98




 

    /**

     * {@inheritdoc}

     */

    public function open($path)

    {

        $handle = @fopen($path, 'r');

 

        if (false === $handle) {

            throw new InvalidArgumentException(sprintf(

                'File %s doesn\'t exist', $path

            ));

        }

 

        try {

            $image = $this->read($handle);




Why it is giving me error if I couldn’t upload any image in my model.