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 rendering of images with JPEG slices #1116

Closed
wants to merge 2 commits into from

Conversation

rolfhowarth
Copy link
Contributor

Some files contain multiple image "slices", each compressed with QuickTime JPEG compression. These need to take the matrix into account to combine them properly. Additionally, these images have a placeholder icon, rendered with PackBitsRect, to indicate that QuickTime is needed which should be suppressed if the CompressedQuickTime operation succeeded. See for example J19.pict.

Include hex opcode and file offset in debug output. Condense scan line messages in readOpDirectBits().
Some files contain multiple image "slices", each compressed with QuickTime JPEG compression. These need to take the matrix into account to combine them properly. Additionally, these images have a placeholder icon, rendered with PackBitsRect, to indicate that QuickTime is needed which should be suppressed if the CompressedQuickTime operation succeeded. See for example J19.pict.
Copy link
Owner

@haraldk haraldk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, thanks!

I think this PR has some issues though, first of all, it contains the changes from the previous PR, making this PR hard to merge without first merging the other.

It also contains the same formatting issues as the other (4 space/8 spaces continuation/no tabs). Let me know if you would like me to share my code style settings.

The sample image is great, but we also need to add it to the PICTImageReaderTest and create a test that fails without these changes, to prove that the change actually fixes what it is intended to.

@rolfhowarth
Copy link
Contributor Author

I created a new pull request (#1124) as my previous one shouldn't have had a dependency on #1115

@rolfhowarth rolfhowarth deleted the 2slices branch March 31, 2025 14:57
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