Code Monkey home page Code Monkey logo

favicon's Introduction

Netpbm Favicon Builder

Copyright (c) 2007 Bart Massey

I do a lot of web site maintenance, and everybody these days expects to see a "favicon": the little custom icon that appears left of the URL in the address bar and bookmarks of most browsers. Favicons are loaded by the browser automatically, preferably by referencing a LINK REL element in the HEAD of the document being accessed. Older browsers expect to see [Windows Icon Files](http://en.wikipedia.org/wiki/ICO_(icon_image_file_format), so it is probably best to supply those. But of course, this is a pain in the neck, especially in my Linux environment.

I have written a shell script to munge an arbitrary image in PNG (easily adaptable to most any other standard format) into a workable favicon. The script makes heavy use of utilities from the Netpbm collection. It takes a source image file as its argument, and makes a giant mess in the directory it is run in, including a favicon file that contains the image at a multiple of resolutions. The formats in the favicon are currently hard-coded to a recommendation from the ppmtowinicon manual page, but the script should be easily adaptable to include other formats. I left the garbage around because sometimes one wants to hand-edit it; the --prescaled flag will make the script use validly-named files that are already present rather than generating them itself.

This program is licensed under "GPL version 3 or later". Please see the file COPYING in this distribution for license terms.

favicon's People

Contributors

bartmassey avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.