Home arrow News - Articles arrow Behind the Scene arrow Showing ico file on website
 
  XnRnXZvLpO www.danielhp.com
Showing ico file on website PDF Print E-mail
Written by Administrator   
Monday, 16 April 2007

It was a little surprise for me finding that ico file cannot automatically show on html. The earlier way to solve this, I manually convert ico to jpg or gif. But that manual way was not reliable since I want to show many collections of ico files in my website www.mixedforyou.com/icon3d. Yes, I found a class that convert ico files and this class have function more than I expected.

Again, I found great classes from phpclasses.org. The classes are class.ico.php and class.icothumb.php that made by Diogo Resende. The class.ico.php used in class.icothumb.php. I use this last class for creating png file from ico file. The generated png file will show all available dimension of the icon, just like the green ladybug picture above.

With that class, I wrote code like this to convert and show the icon file
$ico = new IcoThumb($icofile);
$ico->max_size = 128;
$ico->use_diferent_depths = false;
$ico->GetThumb(4,$saveas);

 echo "<img src='$saveas'>";

and this is another example generated file from ico file:


Comments
Search
lll
hjmkm (125.164.122.xxx) 2009-01-06 03:19:35

Anonymous (122.139.62.xxx) 2009-05-27 01:30:49

cheap wow power leveling cheapest wow power leveling my wow gold buy wow gold replica replica rolex CHEAP wow power level BUY power leveling replica rolex replica CHEAPEST power leveling MY wow power level
cheap rs gold
good BUY wow gold
replica rolex
CHEAPEST wow gold
cheap lotro gold
buy wow gold
my wow gold
cheapest wow gold
CHEAP wow gold zmc
wow gold
jing (125.70.57.xxx) 2009-06-16 08:48:13

Very grateful to my motherwow gold I too enjoy the quiet that night with my friendswow gold to enjoy carnival with impetuous. I wow goldthink there is maybe one day I will return to the impetuosity of the noise,
called the lwow goldaw of the law of extremes meetwow goldwow gold.
wow gold
jing (125.70.57.xxx) 2009-06-16 08:51:09

Game Worldworld of warcraft goldcoastal city of Qinhuangdaobuy wow gold, of coursecheap wow gold, such as swimming routinewow power leveling. However, my specialwow powerlevelinghi from time toeverquest 2 goldgo out at night to swimfinal fantasy 11 cheap gil. The first can beeq2 platavoided by drying the summerbuy ffxi gilsun poisoning, and ffxi gilthe second why, of coursefinal fantasy xi gil, can be naked in the sea formaple story mesos an indulgence. Butmaplestory mesossince there is no timemaplestory mesoto play at Jingpohu coollotro gold, I think probably therelotr goldis no partner, and secondlylord of the ring gold, I do not indulge toorunescape gold, trunks or wrappedrunescape moneyup in the arm, and landedrunescape itemsagain when put in the water beneathdofus kamas, surreptitiouslykamas dofusvery uncomfortable.
Friend has one summerwarhammer goldto drink together, arebuy warhammer goldscattered throughout the good years did not meetCheap warhammer gold, and this look onf...
wow gold
jing (125.70.57.xxx) 2009-06-16 08:51:44

A young cowherd namedworld of warcraft goldwow power levelcheap wow goldwow power levelingwow powerlevelingbuy wow goldEverQuest 2 goldeq2 platcheap ffxi gilffxi gilfinal fantasy gilMaple Story Mesosmaple story accountmaplestory MesosLOTRO Goldlord of the rings goldLOTR Gold both Citizenship and Immigration and the Canadian embassy in Iran warned
him there were no positions for immigrant physicians in Canada.At the end
of November 2003,dofus kamaskamas dofusrunescape goldrunescape powerlevelingrunescape moneyArchLord goldarchlord powerlevelingbuy ArchLord goldflyff penyabuy flyff goldflyff moneyWarhammer goldbuy warhammer gold he finally started working as a doctor for the Burntwood Regional Health
Authority in Thompson, Man. “Four years is a long time to wait,”
says Dr. Ebadiworld of warcraft goldwow power levelcheap wow goldwow power levelingwow powerlevelingbuy wow goldEverQuest 2 goldeq2 platcheap ffxi gilffxi gilfinal fantas...
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated ( Monday, 16 April 2007 )
 
< Prev   Next >
 
 
(C) 2010 daniel hary prasetyo
Free Joomla Template designed by funky-visions.de
 

articles (a-z order)