How to convert ico to PNG online using PHP? Ask the expert to answer.
Yes. Ask the expert to answer
There are ways to do it (don't be too abstract.) Slightly described below. )。。 It's better if you have the source code.
------Solution--------------------
Hey.. Wait for the source.
------Solution--------------------
There is a class, but ...
How to use
PHP code
require ' class.ico.php '; $o = new ico ("Favicon.ico"); /picture to be converted $index = "nsize"; foreach ($o->formats as $key + $val) {if ($val [' Header '] [' Width '] = = + $val [' head Er ' [' Height '] = =) {$index = $key; Break }}if ($index = = = "Nsize") {Print_r ("no corresponding size"); Die;} else {imagegif ($o->geticon ($index), "Favicon.png");}
------Solution--------------------
discussion
Well, I want to give you a brick upstairs ... I thought someone wanted to come out. Specifically excited to open
------Solution--------------------
For an example of!--? php
$input = ' zzz.gif ';
$output = ' zzz.jpg ';
$image =imagecreatefromgif ($input);
Imagejpeg ($image, $output);
Imagedestroy ($image);
Unlink ($input);
?