Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: include(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/resourceloader/ResourceLoader.php on line 201

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007

Warning: require_once(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/json/FormatJson.php on line 12

Warning: require(): Unable to allocate memory for pool. in /usr/local/www/mediawiki/includes/AutoLoader.php on line 1007
ICO - Just Solve the File Format Problem

ICO

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Added format details)
Line 16: Line 16:
  
 
The rest of the file contains the actual images, which usually use a variant of [[BMP]] format (without the file header, and with a transparency mask). Alternatively, they may use [[PNG]] format.
 
The rest of the file contains the actual images, which usually use a variant of [[BMP]] format (without the file header, and with a transparency mask). Alternatively, they may use [[PNG]] format.
 +
 +
== Changing default icons in Windows files ==
 +
 +
Versions of Windows up through XP had a nice and simple means of changing default icons for file types through the properties tab you can pull up for any file/folder. However, Microsoft in its infinite wisdom (or wisdumb?) decided to change that starting in Vista, removing the option and making the changing of icons something that practically requires a PhD in computer science. (Changing icons for ''folders'' is still a simple option, but not for files.) If you want to try it, here's how:
 +
 +
* Run Registry Edit (Regedit.exe from the start menu)
 +
 +
* Navigate to '''HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ FileExts \ ''.ext'' \ UserChoice''', where ''.ext'' is replaced by the file extension you are trying to modify
 +
 +
* If no UserChoice item exists here, go up one level to the one named after the extension you're looking for.
 +
 +
* Note the value of this field, which is what the file type in question is known as to Windows.
 +
 +
* Now go to '''HKEY_CLASSES_ROOT \ ''yourfiletype'' \ DefaultIcon''' in Registry Edit, where ''yourfiletype'' is replaced with the value found in the extension data above.
 +
 +
* Change the value here to the path/filename of the desired icon. If no DefaultIcon item exists, create one under the file type.
 +
 +
* Icon paths can be the name of a .ico file, or an .exe or .dll that contains an icon; in that case, it needs to be suffixed with a comma and a number which gives the index of the icon within the file, where 0 is the first one. The icon picker which you can get while changing icons for a folder/directory can be helpful here; if you choose an exe/dll file, it shows all icons in the file and if you count from left to right and top to bottom you can determine the index of the one you want.
  
 
== See also ==
 
== See also ==
Line 23: Line 41:
 
* [http://en.wikipedia.org/wiki/ICO_%28file_format%29 ICO (Wikipedia)]
 
* [http://en.wikipedia.org/wiki/ICO_%28file_format%29 ICO (Wikipedia)]
 
* The evolution of the ICO file format: [http://blogs.msdn.com/b/oldnewthing/archive/2010/10/18/10077133.aspx part 1], [http://blogs.msdn.com/b/oldnewthing/archive/2010/10/19/10077610.aspx part 2], [http://blogs.msdn.com/b/oldnewthing/archive/2010/10/21/10078690.aspx part 3], [http://blogs.msdn.com/b/oldnewthing/archive/2010/10/22/10079192.aspx part 4]
 
* The evolution of the ICO file format: [http://blogs.msdn.com/b/oldnewthing/archive/2010/10/18/10077133.aspx part 1], [http://blogs.msdn.com/b/oldnewthing/archive/2010/10/19/10077610.aspx part 2], [http://blogs.msdn.com/b/oldnewthing/archive/2010/10/21/10078690.aspx part 3], [http://blogs.msdn.com/b/oldnewthing/archive/2010/10/22/10079192.aspx part 4]
 +
* [http://www.winhelponline.com/blog/change-file-type-icon-windows-7-vista/ Changing default file icons in Vista and Win7]
  
 
[[Category:Microsoft]]
 
[[Category:Microsoft]]

Revision as of 16:09, 13 April 2013

File Format
Name ICO
Ontology
Extension(s) .ico
MIME Type(s) image/vnd.microsoft.icon, image/x-icon

Contents

Overview

ICO is a Microsoft Windows icon format.

ICO files can have multiple icon images of different sizes and color types in the same file, so that programs displaying them can pick the best image for a particular use.

CUR (cursor) files are in a nearly identical format with only a few bytes different.

Format

An ICO file begins with a header, and then an index listing all of the images in the file. For each image, the index contains information about its size, color format, and location in the file.

The rest of the file contains the actual images, which usually use a variant of BMP format (without the file header, and with a transparency mask). Alternatively, they may use PNG format.

Changing default icons in Windows files

Versions of Windows up through XP had a nice and simple means of changing default icons for file types through the properties tab you can pull up for any file/folder. However, Microsoft in its infinite wisdom (or wisdumb?) decided to change that starting in Vista, removing the option and making the changing of icons something that practically requires a PhD in computer science. (Changing icons for folders is still a simple option, but not for files.) If you want to try it, here's how:

  • Run Registry Edit (Regedit.exe from the start menu)
  • Navigate to HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ FileExts \ .ext \ UserChoice, where .ext is replaced by the file extension you are trying to modify
  • If no UserChoice item exists here, go up one level to the one named after the extension you're looking for.
  • Note the value of this field, which is what the file type in question is known as to Windows.
  • Now go to HKEY_CLASSES_ROOT \ yourfiletype \ DefaultIcon in Registry Edit, where yourfiletype is replaced with the value found in the extension data above.
  • Change the value here to the path/filename of the desired icon. If no DefaultIcon item exists, create one under the file type.
  • Icon paths can be the name of a .ico file, or an .exe or .dll that contains an icon; in that case, it needs to be suffixed with a comma and a number which gives the index of the icon within the file, where 0 is the first one. The icon picker which you can get while changing icons for a folder/directory can be helpful here; if you choose an exe/dll file, it shows all icons in the file and if you count from left to right and top to bottom you can determine the index of the one you want.

See also

References

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox