When we do the Web system, each browser tab here will have an icon, this icon is called the Favicon icon, favicon.ico file placed in the root directory of the systemIf the programmer does not have an ICO authoring tool, how do you generate the icon?
Several related websites and downloads are provided:
Generate favicon. ICO address online:
Http://www.chami.com/html-kit/services/favicon/
There are 6 online tools:
Http://www.chami.com/html-kit/services/
Favicon from PICs // This is the online
This article will share with you two pieces of code for generating ICO icons in php. The first one is implemented based on the YII Framework, and the second one is written in pure php, which is very good, for more information, see section 1.
Favicon. ICOIt is generally used as a thumbnail Website Logo. It is displayed in the address bar of the browser or on the tab to display the Website Logo,Red CircleCurrently, the main browsers supportFavicon. ICOIcon.(The original image can be
1,phpthumb_ico is the class that generates the ICO icon, the source code is as follows
Class Phpthumb_ico {function Phpthumb_ico () {return true; } function gd2icostring (& $gd _image_array) {foreach ($gd _image_array as $key + = $gd _image)
Class
1. PHP conversion image for the ICO format source sharing
Introduction: ICO image online conversion of pure PHP source code integration in the open source project,
2. HTML page Browser title bar display Small Icon method
Here I am using the YII framework.
1,phpthumb_ico is the class that generates the ICO icon, the source code is as follows
Class Phpthumb_ico {function Phpthumb_ico () {return true; } function gd2icostring (& $gd _image_array) {foreach ($gd
Note: converted to ICO does not work well.
Source code:
Using System;Using System. Collections. Generic;Using System. Text;Using System. Drawing;Using System. Drawing. Imaging;Using System. IO;
Namespace paomiangege{Public class ImageConvert{Private
General Office. By now, Silverlight only supports images in PNG and jpg/JPEG formats, however, GIF format, which is widely used on the web, does not provide any processing (the same is true for BMP and ICO formats...
Fortunately, I recently
The pure PHP source code for online ico Image conversion is integrated into open-source projects,
Class
$gd_image) { $IcoWidths[$key] = ImageSX($gd_image); $IcoHeights[$key] = ImageSY($gd_image);
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.