Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure original type is preserved when fm is not specified. #415

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

ADmad
Copy link
Collaborator

@ADmad ADmad commented Dec 19, 2024

Earlier, if fm was not specified then an image with mime-type "image/x-webp" would get encoded as jpg instead of webp, since the mime type is not include in the Encoder::supportedFormats() list.

@ADmad ADmad added this to the 3.x milestone Dec 19, 2024
@ADmad ADmad force-pushed the 3.x-encoding-type branch from 1e21c15 to 03eac2e Compare December 19, 2024 05:19
@deluxetom
Copy link

Thanks for the easier fix, you took care of the issue with that test already it looks like:
https://github.com/Intervention/image/releases/tag/3.9.1

Earlier, if `fm` was not specified then an image with mime-type "image/x-webp"
would get encoded as jpg instead of webp, since the mime type is not include
in the Encoder::supportedFormats() list.
@ADmad ADmad force-pushed the 3.x-encoding-type branch from 03eac2e to 0b35312 Compare December 19, 2024 13:19
@ADmad ADmad merged commit 142bd4e into 3.x Dec 19, 2024
7 checks passed
@ADmad ADmad deleted the 3.x-encoding-type branch December 19, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants