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

Fix crash when saving compressed image as JPG & WebP #84758

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

timothyqiu
Copy link
Member

Fixes #84707
Fixes #84743

Unlike saving as PNG & EXR, saving as JPG & WebP did not take compressed images into account. This PR tries to decompress the image before trying to convert it (converting a compressed image always fails).

This PR also makes saving as JPG no longer affect the format of the image (it always converted the image into RGB8 in place). Consistent with saving as other formats.

@timothyqiu timothyqiu added this to the 4.2 milestone Nov 11, 2023
@timothyqiu timothyqiu requested a review from a team as a code owner November 11, 2023 16:23
@akien-mga akien-mga merged commit bfa687a into godotengine:master Nov 11, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@timothyqiu timothyqiu deleted the decompress branch April 24, 2024 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants