Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ICO maximum size

Tags:

filesize

.ico

Is there a way to convert an image to ICO format, if the resolution is bigger than 256x256?

I found several programs but none of them was able to convert larger images. The size which I need is 1024x1024.

like image 326
D.Steinel Avatar asked Sep 10 '12 11:09

D.Steinel


People also ask

How many pixels is an ICO?

These days, ICO files can be 256 x 256 pixels and contain 24 bits of colors and 8 bits of transparency. Windows does recommend images that are 256 x 256 pixels be compressed PNGs to save space, which highlights the unique attribute of a file type like ICO - it's actually several images in either BMP or PNG format.

How do I know my ICO size?

If you want to see the different sizes included in the Windows ICO Format you can easily do this in Windows. Save your ICO files into a folder and then use the 'View' drop down to select the view or size of icon you wish to see. Windows 7 automatically scales the icons as you move between the sizes you have created.

Why are ICO files so big?

Usually, the images in an . ico are held as uncompressed BMP images. If you're converting from png, these will probably be stored at 32bits per pixel. When Windows Vista came along, Microsoft added support for embedded PNG files, but this tends to be for 256x256 icons so that older apps don't break.

How do you make an ICO image bigger?

Make sure your ico files have the bigger images in them too, to do this you can open then in Visual Studio, then right click on the images and change the size you are looking at or add other sizes with the context menu.


1 Answers

Since the width and height is stored as a single byte each in the ICO image format, it cannot represent images larger than 256×256.

You need to first resize your image.

http://en.wikipedia.org/wiki/ICO_(file_format)#Outline

like image 85
perh Avatar answered Nov 25 '22 07:11

perh