Intervention / imagecache

Caching extension for the Intervention Image Class

Home Page:https://image.intervention.io/v2/usage/cache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Read the wrong img type when using pathinfo()

swkias opened this issue · comments

When judging the type of img use this code :pathinfo($path, PATHINFO_EXTENSION).
Which means that if I have a pic name img.2,it process it as the type of 2 and throw an notSupportedException.I think use the finfo() in php to read the img type info is much more btter.