-
Notifications
You must be signed in to change notification settings - Fork 1.5k
MAINT: Correct types in CCITTParameters #3403
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3403 +/- ##
==========================================
+ Coverage 96.94% 96.95% +0.01%
==========================================
Files 55 55
Lines 9333 9341 +8
Branches 1708 1708
==========================================
+ Hits 9048 9057 +9
+ Misses 170 169 -1
Partials 115 115 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Would adding BlackIs1 decrease code coverage? |
This parameter is already implemented globally and IMHO should not be required here as it requires the actual image anyway: Lines 956 to 958 in 2a91bd4
|
|
You want to have them in one place, not having means that its non-inclusion is because of something elsewhere. |
|
Sorry, but I do not understand what you mean with your last comment. |
I think it should be at the top of CCITTParameters, together with the rest of them. It is the only one excluded. The other attributes you need the image as well. |
|
I am still a bit confused about the benefits. Does this have any advantage besides just having it there? Some of the other values might be valuable for the decoder, but |
The advantage is consistency: we do not use some of the others and they are there. We also have a comment: This means BlackIsOne. From the specification: So, I am unsure if the comment is correct. Should it be |
|
Regarding |
@stefan6419846 I barely understand this! Is that code directly from Pillow? |
|
Evaluating the Line 656 in 2a91bd4
Lines 956 to 958 in 2a91bd4
|
|
Have done some other PRs to make it easier to understand. I will implement this in a new PR. Using Lines 616 to 627 in 01c98a5
|
|
Sorry, but I do not understand what you mean. What are you planning to implement in a new PR?
It already is necessary to process some of the parameters. What do you intend to change? |
Lets get the existing PRs done, and then see where we are. Is this PR good to go? |
|
We previously discussed moving BlackIs1 processing into the generated list instead of implementing this with Pillow manually, as we are adding it to the parameter set. Did you try this and were you successful? If this is feasible without having to analyze it further, I vote to change this here directly. |
|
Yes, better in this PR, where have created the Black1 processing. The removal of the part in |
|
Could you please rebase your changes on the current main branch? Additionally, if we want to move the parameter, we should remove the section from |
…pdf#3411) Related to py-pdf#3051 and py-pdf#3408. This updates some of the binary dependencies as well to avoid side effects on Python 3.14. Nevertheless, Pillow 11.1.0 would indeed introduce a side effect, which required us to change the tests to check pixel data instead of byte data for the PNG file comparison.
Additionally includes the related changes required for getting a clean CI with these library changes.
Use modern formatting.
UP035: checks for uses of deprecated imports based on the minimum supported Python version.
params.group is not always equal to 4, so the comment is changed.
Did the rebase. Unsure if was correct. |
|
It seems like the rebase includes too much changes, but as you deleted the branch anyway, feel free to open a new clean PR for this to avoid confusion. |
No description provided.