-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ENH: Extend images interface by returning an ImageFile(File) class #1848
Conversation
Number of colors were not taken into account to process PNG Images also properly process mask to transparency closes py-pdf#1787
checks the rendering
I've reported the merge and select what I wanted. the history is not so good I will also isolate a new PR for Inline Image and also Image replacement (to reduce file size specially) |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1848 +/- ##
==========================================
- Coverage 93.77% 93.73% -0.05%
==========================================
Files 34 34
Lines 6720 6795 +75
Branches 1320 1338 +18
==========================================
+ Hits 6302 6369 +67
- Misses 272 279 +7
- Partials 146 147 +1
☔ View full report in Codecov by Sentry. |
@MartinThoma |
pypdf/_utils.py
Outdated
|
||
|
||
@dataclass | ||
class FileImage(File): |
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.
Could you please rename it to ImageFile
?
New Features (ENH): - Extraction of inline images (#1850) - Add capability to replace image (#1849) - Extend images interface by returning an ImageFile(File) class (#1848) - Add set_data to EncodedStreamObject (#1854) Bug Fixes (BUG): - Fix RGB FlateEncode Images(PNG) and transparency (#1834) - Generate static appearance for fields (#1864) [Full Changelog](3.9.1...3.10.0)
Extends the current image with new attributes (image/indirect_reference).
Allows extension for Inline Images, and image replacement
For the Reviewer