Skip to content

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

Merged
ADmad merged 1 commit into3.xfrom
3.x-encoding-type
Dec 19, 2024
Merged

Ensure original type is preserved when fm is not specified.#415
ADmad merged 1 commit into3.xfrom
3.x-encoding-type

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
Contributor

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
@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