Haiku Vector Icon Format
Filename extension | none |
---|---|
Magic number | ncif |
Developed by | Haiku Project |
Initial release | July 2006[1] |
Type of format | vector image format |
Haiku Vector Icon Format (HVIF) is a vector storage format designed to store icons, specifically for Haiku.
History
Haiku developers commonly agreed that Haiku could not be released with original BeOS R5 icons. Since Haiku needed its own artwork anyway, it was thought that icons could switch to vectors graphics from traditional BeOS bitmaps. In July 2006 Haiku developer Stephan Aßmus introduced Icon-O-Matic, the icon editor of Haiku, and a storage format with a rendering engine based on Anti-Grain Geometry.[1]
After a few days of discussion, Aßmus announced a contest to determine an icon theme for Haiku. He stated that there was no guideline that had to be followed and suggested 1 September as deadline.[2] 16 icon sets were rated in the contest, and Aßmus' icon set "Stippi" received the award. In early November it was also announced that Stephan Aßmus implemented vector icons in OpenTracker.[3]
HVIF icons of Stippi set are used in current Haiku releases and builds.[4]
Features
Aimed at fast rendering and small file sizes, HVIF brings the following approaches:
- Icons have a native size of 64×64 pixels[5]
- Integer coordinates from −32 to +95 and an eighth bit to indicate non-integer coordinates are used to reduce the size.[5]
- There are three basic path types: path with commands, path with straight lines only and path with curves only.[5]
- There are four different path commands introduced for icon creating: horizontal line, vertical line, line, and cubic curve.[5]
- Since a great precision is not needed, it uses its own floating point format for storing transformation matrices, resulting a matrix size of 18 bytes, which is considerably smaller than the transformation matrix size of 24 or 48 bytes in other formats.[5]
- There are two types of style: plain color and gradient.[5]
- Flags are used to specify what aspects of the objects should be stored in the file, so that unused sections don't take up space.[5]
- HVIF data consists of three sections: The first one encodes styles, the second the paths and the third the shapes.[5]
- Styles and paths are global to an icon with a maximum number of 256 for each, so that they can be reused by different shapes by referring to them with one byte.[5]
- The icons have an average size of 500–700 bytes, which is smaller than commonly used bitmap or vector graphics icons.[6]
- Because of their small size, icons can be stored within inode of files. Therefore, the name, the size, the date and the icon of a file can be read by Tracker within a single disk operation.[6]
- Unlike other vector graphics formats, the icons are rendered in a single pass except for some cases like transparency,[7] causing no visible seams between shapes.[6]
References
- ↑ 1.0 1.1 "E-mail concerning Icon-O-Matic sent to Haiku mail list". 26 July 2006. http://www.freelists.org/post/haiku/Icon-Artwork.
- ↑ "E-mail concerning an icon contest sent to Haiku mail list". 30 July 2006. http://www.freelists.org/post/haiku/Icon-Artwork,11.
- ↑ "Icon Contest: And the Best Rated Icon Set Award goes to...". Haiku Web Site. 3 November 2006. https://www.haiku-os.org/news/2006-11-03_icon_contest_and_best_rated_icon_set_award_goes/.
- ↑ "New Haiku Services Kit Takes Shape – OSnews". https://www.osnews.com/story/23711/new-haiku-services-kit-takes-shape/.
- ↑ 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 "Why Haiku Vector Icons are So Small". Haiku Web Site. 13 November 2006. https://www.haiku-os.org/articles/2006-11-13_why_haiku_vector_icons_are_so_small/.
- ↑ 6.0 6.1 6.2 "Icon Facts". Haiku Web Site. 6 November 2006. https://www.haiku-os.org/news/2006-11-06_icon_facts/.
- ↑ "E-mail concerning HVIF sent to Haiku mail list". 4 January 2011. http://www.freelists.org/post/haiku/HVIF-Wikipedia-Page,2.
External links
- Haiku Icons by zuMi
- Haiku icons in Haiku source repository
- Icon-O-Matic article in Haiku user guide