← Back

Display Apple ICNS icons using the <img> tag

An .icns file is not one image but a family: the same icon at several sizes and depths, each with its own mask. The filter picks the largest 32-bit variant and applies its mask. Decoded here with libicns_1

Apple ICNS icon

Code snippet

<img is="universal-img_1" src="test1.icns" using="solver_minimal_1"
     with="libicns_1"> </img>

Specifications :

The specifications of the test sequence are :

Format ICNS (icon family, 128×128 selected)
FileSize 37 Ko
Solver solver_minimal_1