-
-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change: encode non-JPEG images as PNGs instead of JPEG2000 images
This uses Pillow to re-encode any non-JPEG image as a PNG, then inline that image's IDAT chunks as a FlateDecode value, which allows us to reuse the work from the PNG encoder. This means we'll reencode some PNGs we could have passed through directly, but that could be changed later. Alpha layers continue to be handled separately, as appears to be required by the PDF spec.
- Loading branch information
Showing
1 changed file
with
50 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters