ExImageInfo is an Elixir library to parse images (binaries) and get the dimensions (size), detected mime-type and overall validity for a set of image formats. It is the fastest and supports multiple formats.
Hi, we are using your lib and checking for the correct type by parsing the ext name of an image and calling seems?(binary, to_atom(ext))
For jpegs the ext is usually .jpg. So I thought maybe we could add a second matching:
def seems?(binary, :jpg), do: JPEG.seems?(binary) after the the original :jpeg.
Hi, although the standard specifies "jpeg" and not "jpg" (this is something that comes from Windows), we decided to include it for you.
Check it out ;)
Hi, we are using your lib and checking for the correct type by parsing the ext name of an image and calling
seems?(binary, to_atom(ext))
For jpegs the ext is usually .jpg. So I thought maybe we could add a second matching:
def seems?(binary, :jpg), do: JPEG.seems?(binary)
after the the original:jpeg
.What do you think?