PHP code example of konradmichalik / php-ico-file-loader
1. Go to this page and download the library: Download konradmichalik/php-ico-file-loader library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
konradmichalik / php-ico-file-loader example snippets
$loader = new KonradMichalik\PhpIcoFileLoeader\Parser\IcoFileService;
$im = $loader->extractIcon('/path/to/icon.ico', 32, 32);
imagepng($im, '/path/to/output.png');
bash
composer