I discovered this interesting PHP class today that can be used to process all kinds of .ico files in PHP.
- Read/write icon files.
- Extract individual icons from a multi-icon file as GD icon resources.
- Add new icons to an .ico file.
- Supports all icon image sizes, bit depths and transparency.
What to do with it
Good question. One obvious application for this PHP class would be a website favicon generator/manager but let’s face it – there are already dozens of those out there. I haven’t seen any procedural icon generators though – that might be an idea worth exploring. Most of the favicon “generators” simply convert an uploaded image to an icon or make text-based favicons. One could probably create a script that generates abstract icons based on fractals or other mathematical shapes. Or create a bunch of preset shapes and color/style them as the visitor wishes (similar to the AJAX loading .gif generator). Or something, use your imagination 😛Related posts :