-
Notifications
You must be signed in to change notification settings - Fork 263
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
Issue #1271 added LZWDecode compression #1286
Issue #1271 added LZWDecode compression #1286
Conversation
Hi @Lucas-C I added support for compression using LZWDecode, and I would like you to look at my code and give your opinion. I tested this filter manually by adding images compressed with LZWDecode to pdf files, and it seems to work correctly. Local check of |
Good job 👍 I'll try to review this PR very soon, today or tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @opposss
God job overall 👍
You placed the code at the right place, and it's clear.
I'll finish the code review once unit tests have been added, but it's a promising start!
OK so there is one thing currently blocking in the GItHub Actions pipeline:
This is the relevant VeraPDF rule: https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Part-1-rules/#rule-6110-1 I think the best fix is to add this rule ( |
Thank you for your contribution @opposss 👍 @allcontributors please add @opposss for code |
I've put up a pull request to add @opposss! 🎉 |
I noticed today that the unit test And 90% of this execution is spent in
I wonder if this could be improved... |
@Lucas-C I changed the implementation |
Fixes #1271
Added support for image compression using LZWDecode.
Checklist:
The GitHub pipeline is OK (green),
meaning that both
pylint
(static code analyzer) andblack
(code formatter) are happy with the changes of this PR.A unit test is covering the code added / modified by this PR
This PR is ready to be merged
In case of a new feature, docstrings have been added, with also some documentation in the
docs/
folderA mention of the change is present in
CHANGELOG.md
By submitting this pull request, I confirm that my contribution is made under the terms of the GNU LGPL 3.0 license.