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

PSD: Fix thumbnail extraction for PSD files #3668

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Nov 14, 2022

Fixes #3660

In investigating this issue, I also noticed that now that IOProxy support can be relied on, the old code that in the psd reader that directly fumbles with libjpeg is not needed and can be replaced by just a couple of lines to make an ImageBuf read from an IOProxy.

And it fixes the bug, too. So I'm not even going to try to figure out what was going wrong with the old code.

@lgritz
Copy link
Collaborator Author

lgritz commented Nov 14, 2022

The sanitizer failure is addressed separately by #3666, discovered along the way. But they were technically unrelated, so I made two PRs. When combined, everything works.

Fixes 3660

In investigating this issue, I also noticed that now that IOProxy
support can be relied on, the old code that in the psd reader that
directly fumbles with libjpeg is not needed and can be replaced by
just a couple of lines to make an ImageBuf read from an IOProxy.

And it fixes the bug, too. So I'm not even going to try to figure
out what was going wrong with the old code.
@lgritz lgritz merged commit d5d9146 into AcademySoftwareFoundation:master Nov 16, 2022
@lgritz lgritz deleted the lg-thumb branch November 16, 2022 02:44
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Nov 19, 2022
…n#3668)

Fixes AcademySoftwareFoundation#3660

In investigating this issue, I also noticed that now that IOProxy
support can be relied on, the old code that in the psd reader that
directly fumbles with libjpeg is not needed and can be replaced by
just a couple of lines to make an ImageBuf read from an IOProxy.

And it fixes the bug, too. So I'm not even going to try to figure
out what was going wrong with the old code.
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.

[BUG] PSD Thumbnail is black
1 participant