| Showing ico file on website |
| 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 echo "<img src='$saveas'>"; |
||||||||||||||||
| Last Updated ( Monday, 16 April 2007 ) | ||||||||||||||||