Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 works great. Just open elephant-128x128.ico in Chrome and Firefox and you will see the difference.

<img height='128' src="http://icons.iconseeker.com/ico/cloth-dolls-icons/elephant-128x128.ico">


https://jsfiddle.net/qwx2sxzg/1/ 

or http://icons.iconseeker.com/ico/cloth-dolls-icons/elephant-128x128.ico Does anybody has idea how to fix this?

like image 802
Sergey Zubatkin Avatar asked Jun 19 '15 07:06

Sergey Zubatkin


1 Answers

Your best bet is to convert ico files to another format, since it is not compatible with all browsers.

Image Format Support For Web Browsers

There is no other workaround for it.

like image 96
Muhammet Avatar answered Oct 11 '22 01:10

Muhammet