Questions tagged [ico]

ICO is an image file format (associated with ".ico" file extension) developed by Microsoft and designed for storing icons. It is widely used in Microsoft products, notably in Windows operating systems. From there it spread to other platforms and Internet. Use this tag if your question is related to this specific format. Do not use this tag for general questions about icons or concepts such as "favicon" if you don't plan to use ICO format for them.

Single ICO file can contain many images of different pixel sizes and color depths. The idea behind this is that software can pick most appropriate format without performing internal scaling, which from historical point of view had impact on performance and from the other point of view may give poor results when it comes to appearance. Scaling icon from high to small resolution, like 16x16 pixels, may require artist intervention or specialized software to keep icon sharp and readable.

225 questions
6
votes
1 answer

Using .ico in img tag

I have faced next strange behavior in Firefox when use ico file as src in img tag. When It opens in Firefox (latest version), it has 16x16 format despite of the fact that ico original format is 128x128. In other browser (Chrome, IE) everything…
5
votes
2 answers

.ico and transparency

I've been trying to make an icon that has transparency. I've tried Axialis but the documentation is crummy and the ui is somewhat inscrutable. Everytime I think I've figured out how to set transparency, it's coming in with white space. MS…
user992205
  • 53
  • 1
  • 1
  • 3
5
votes
1 answer

How can I Buy or Sell erc20 token with using web3.js?

Which function will I use in web3.js for buying erc20 token from my website?
5
votes
2 answers

Show website icon when sharing in WhatsApp

The title may sound vague, but I want my website icon to show up in WhatsApp when I share it (like the example below). Thought this would suffice, but apparently it doesn't work that way:
user5609622
5
votes
1 answer

Inno Setup SetupIconFile Resource Update Error: Icon File is invalid

I want to customize the setup icons for my installer(Inno Setup). I've setup this line of code for that purpose: SetupIconFile=C:\Users\Dale\Desktop\myapp.ico However, this error appears when I compile the installer: What does this mean and how do…
Dale Julian
  • 1,560
  • 18
  • 35
5
votes
2 answers

Is there a way to decode a .ICO file to a resolution bigger than 16x16?

I'm working on android and trying to download and display a favicon(.ICO) from a website on an ImageView. So far I've manage to read the .ico from a website using an HTTP connection, retrieve it as an InputStream. Then I use a BitmapFactory to…
David Neto
  • 809
  • 1
  • 12
  • 20
4
votes
1 answer

how to determine the transparent color index of ICO image with PIL?

Specifically, this is from an .ico file, so there is no "transparent" "info" attribute like you would get in a gif. The below example illustrates converting Yahoo!'s favicon to a png using the correct transparency index of "0", which I guessed. …
zzzeek
  • 72,307
  • 23
  • 193
  • 185
4
votes
2 answers

How do I get a favicon to display with out a server?

I am doing client side testing for my web application using IE only, there is no server - so I can test my CSS/XHTML/Javascript. When I add the line or
user656925
4
votes
2 answers

How to resize images with imageio to get proper ICO files?

I want to save ICO files from images. imageio is working perfectly, but for horizontal images, it gave me an error. This is my code: import imageio image = imageio.imread('image.png') imageio.imwrite("image.ico", image)
Eklavya Chandra
  • 108
  • 1
  • 11
4
votes
2 answers

Why does Chrome request both .svg AND .ico favicons?

Most modern browsers support .svg favicons as of Sep 2020. See: https://caniuse.com/link-icon-svg However, in order to support legacy browsers my site serves a .ico favicon in addition to a .svg favicon with the following html links in :
YNotRandom
  • 43
  • 4
4
votes
4 answers

How to generate an ICO file from an SVG using maven?

In my project I need an icon file (.ICO) for the Windows executable. I'd like to generate that file from an SVG, so it contains several images for different sizes. Is there a maven plugin that can do that for me? I know I can just put an icon file…
Roel Spilker
  • 32,258
  • 10
  • 68
  • 58
4
votes
2 answers

How to convert an .ICO to .PNG with Python?

I'm trying to convert a batch of .ICO images over to .PNG images in Python. I have quite a few images to go through so I'd like to find a programmatic solution. I've tried using PIL but I can't seem to get the images and transparency to come out…
Joel
  • 696
  • 1
  • 7
  • 12
4
votes
2 answers

How to use .ico images in plots programmatically with/without conversion

How to use .ICO image files in plots programmatically with/without conversion? My question is a follow-up of How to convert .ICO to .PNG?, targeted to R, and with the following specific details: I am not asking about methods involving transcluding…
PatrickT
  • 10,037
  • 9
  • 76
  • 111
4
votes
1 answer

How to add icon to your C++ console application?

I'm trying to add an icon to my C++ console application but when I try to compile the following code I get these errors. The first is my resources.rc and the second file is my main.cpp. Resource script: #ifndef RESOURCE_RC_INCLUDED #define…
Adam Oates
  • 115
  • 1
  • 2
  • 7
4
votes
1 answer

Reading AND mask of 16x16 images from ICO file in Lua

I am creating a function that will parse and ICO/CUR and convert the data into plain pixels (specific to my API) that will then be fed to a dxCreateTexture function which will create the final image. I'm currently working on the case when the images…
cheez3d
  • 61
  • 6
1 2
3
14 15