ICO Image Decoder

This is an additional component to the core image library that adds support for the ICO format.


Requirements

  • PHP ^8.1

Installation

Library is available as composer repository and can be installed using the following command in a root of your project.

  • composer require bic-engine/image-ico

Usage

$factory = new \Bic\Image\Factory();
$factory->extend(new \Bic\Image\ICO\ICODecoder());

// After adding the decoder, you can use the *.ico reading
$images = $factory->fromPathname('path/to/image.ico');

Supported Formats

Bit Depth Compression Availability
8 bits RGB
16 bits RGB
24 bits RGB
32 bits RGB
X bits RLE4
X bits RLE8
X bits BITFIELDS
X bits JPEG
X bits PNG
X bits CMYK
X bits CMYK + RLE4
X bits CMYK + RLE8