selective-php / image-type

Image type (format) detection for PHP
MIT License
7 stars 4 forks source link

Detect HEIC-SEQUENCE (image/heic-sequence) #71

Closed odan closed 5 years ago

odan commented 5 years ago

We are detecting the HEIC images and HEIC-sequences already. We just have to add a new image type e.g. HEIC_SEQUENCE and add an additional mapping. Instead of returning a fixed value ImageType::HEIC, we could detect here ImageType::HEIC_SEQUENCE too (depending on the CC codes).

https://github.com/selective-php/image-type/blob/master/src/Detector/HeicDetector.php#L34

After that we can differentiate between these two mime types:

Before

public const HEIC = 'heic';

After

public const HEIC = 'image/heic';
public const HEIC_SEQUENCE = 'image/heic-sequence';