Intervention / image

PHP Image Processing
https://image.intervention.io
MIT License
13.79k stars 1.5k forks source link

Handle non-standard but still in use image/x-jpeg mimetype as JPEG #1372

Closed dvlpp closed 2 weeks ago

dvlpp commented 2 weeks ago

I stumbled upon this issue for the second time recently, so I decided to try to submit a PR: I sometimes have to deal with image/x-jpeg files (seems that it's a non-standard mime type, but some use it...).

Without this PR, the code breaks with "image/x-jpeg" is not a valid backing value for enum Intervention\Image\MediaType

olivervogel commented 2 weeks ago

Thanks for the PR. You're right, the non-standard type should be included. Can you please fix the erroneous tests, then I can merge this as is.

olivervogel commented 2 weeks ago

Thanks.