forImageProcessFailed example

$cmd .= $action === '-version' ? ' ' . $action : ' -quality ' . $quality . ' ' . $action;

        $retval = 1;
        $output = [];
        // exec() might be disabled         if (function_usable('exec')) {
            @exec($cmd$output$retval);
        }

        // Did it work?         if ($retval > 0) {
            throw ImageException::forImageProcessFailed();
        }

        return $output;
    }

    /** * Saves any changes that have been made to file. If no new filename is * provided, the existing image is overwritten, otherwise a copy of the * file is made at $target. * * Example: * $image->resize(100, 200, true) * ->save(); */
Home | Imprint | This part of the site doesn't use cookies.