ralouphie / mimey

PHP package for converting file extensions to MIME types and vice versa.
MIT License
325 stars 86 forks source link

Most common image/jpeg file extension #11

Closed shtse8 closed 6 years ago

shtse8 commented 7 years ago

At the moment, mimey best guess the extension of image/jpeg is jpeg. I think it's better to change to jpg as it should be the most common nowaday. Reference: http://stackoverflow.com/questions/23424399/jpg-vs-jpeg-image-formats

spotman commented 6 years ago

@ralouphie +1 for this! Or maybe it is possible to fix with custom mime-types bindings?

ralouphie commented 6 years ago

Thanks for the feedback. Added support in 2.0.0 via https://github.com/ralouphie/mimey/commit/81e30eab608a582a6d7c293484fba0b34f3cf335#diff-121ebdf3a63c985502483d33a10e762b

wrabit commented 2 years ago

Just downloaded and out of the box it still returns jpeg instead of jpg