How to use PHP to convert ico to PNG online .. Please give answers. Yes .. You just need a method (not too abstract .. .).. It would be better if the source code is available .. Wait for the source code ., There is a class, but... how to use PHPcoderequire 'class. ico. php'; $ o = newIco (& quot; favi how to use php to convert ico to PNG online .. Please give answers.
Yes .. Answers from experts
Just do it with methods (not too abstract .. .).. It would be better if the source code is available.
------ Solution --------------------
Hey .. Wait for the source code.
------ Solution --------------------
There is a class,...
Usage
PHP code
Require 'class. ico. php '; $ o = new Ico ("favicon. ico "); // the image to be converted $ index =" nsize "; foreach ($ o-> formats as $ key => $ val) {if ($ val ['header'] ['width'] = 32 and $ val ['header'] ['height'] = 64) {$ index = $ key; break;} if ($ index = "nsize") {print_r ("no corresponding size"); die ;} else {imagegif ($ o-> GetIcon ($ index), "favicon.png ");}
------ Solution --------------------
Discussion
I really want to give a brick upstairs... I thought someone came up with it .. Very excited
------ Solution --------------------
Example
Using input='zzz.gif ';
Export output+'zzz.jpg ';
$ Image = imagecreatefromgif ($ input );
Imagejpeg ($ image, $ output );
Imagedestroy ($ image );
Unlink ($ input );
?>