SectorPrime |
Free online directory listing service. |
||||
|
fav2png - Free favicon.ico to png image converter
This is a really easy way to brighten up your link pages - by using the favicons of the pages you're linking to! A site's favicon is typically displayed in your browser's address bar, and in your favourites or bookmarks. Their standard location is http://some.domain.com/favicon.ico. They have a standard size (16 x 16px) and are ideal for placing next to your links. We use fav2png throughout SectorPrime. Most modern browsers display the .ico format (the normal format for favicons). So why use this script?
The actual image manipulation is provided by Tony Cook's Imager.pm. This code is free under the GNU GLP (see code header of Fav_2_Png.pm). For a general image-conversion program, see our image converter; for other PNG-supporting applications, see libpng.org. fav2png.plfav2png.pl is a wrapper around the real functionality in Fav_2_Png.pm, to make testing easier. The default image is expected in fav_default.png, and cached images are stored in a folder called img_cache. |
||||
Fav_2_Png.pmSimple usageThe simplest usage is to call the script directly as the image source: Faster loadingIf you have a lot of fav2png images on the same page, there can be a small delay while the perl script serves up the current version. In this case, you can use javascript to first load the previous cached version directly, and then let the perl script give you the current version. I've used the script/noscript construct to handle browsers with javascript disabled: The source for fav2png.js is shown below. Faster loading with hyperlinksFinally, here's the HTML for faster loading, with the images hyper-linked to the domain: fav2png.jsAnd here is the source for fav2png.js: If you have any problems using this resource, or any suggestions on how it could be improved, please feel free to contact us. |
|||||
|
Add link, exchange links... list your site for free using reciprocal links. |
|||||