selective-php / image-type

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

Consider using ImageType class const in ImageTypeDetector class #4

Closed peter279k closed 5 years ago

peter279k commented 5 years ago

I've noticed that the ImageType class should have many constraint image types.

We can also use them in ImageTypeDetector class, not use image type string directly.

odan commented 5 years ago

Instead of an primitive string the return type of the image detector is now a value object containing the result of the detection.