Tamás Zahola tzahola
  • Joined on 2021-06-12
tzahola commented on pull request josch/img2pdf#106 2021-08-22 19:41:43 +00:00
Convert 8-bit PNG & GIF alpha channels to /SMasks in PDF

To find the reason for this, run the following:

$ convert rose: -depth 12 out.tiff
$ convert out.tiff json: 
tzahola commented on pull request josch/img2pdf#106 2021-08-19 16:11:27 +00:00
Convert 8-bit PNG & GIF alpha channels to /SMasks in PDF

Hi,

could you rebase your commits on top of the current main branch? I merged some of the other merge requests which should fix compatibility with imagemagick 7 that you are running.

tzahola pushed to png-alpha-to-smask at tzahola/img2pdf 2021-08-19 15:47:17 +00:00
8cbe03d486 Test cases for transparency
968fc0c27a Test support on macOS
cfbb40b0f6 Always initialize smask
ff03d9c1cd Formatting
e6613d3244 Use PNG predictor for /SMask too
Compare 19 commits »
tzahola closed issue tzahola/img2pdf#4 2021-07-27 10:46:24 +00:00
How does a cash app work to provide a hassle-free platform to people?
tzahola closed issue tzahola/img2pdf#3 2021-07-27 10:46:19 +00:00
Is Visiting Cash.app/help Beneficial In Fixing All Your Problems?
tzahola closed issue tzahola/img2pdf#2 2021-07-27 10:46:13 +00:00
Amazing vitality of Cash app Support:
tzahola closed issue tzahola/img2pdf#1 2021-07-27 10:46:07 +00:00
Essential features of cash app Support phone number:
tzahola commented on pull request josch/img2pdf#106 2021-07-18 00:30:47 +00:00
Convert 8-bit PNG & GIF alpha channels to /SMasks in PDF

No worries! :) Congratulations! 👶

tzahola commented on pull request josch/img2pdf#106 2021-07-11 19:26:10 +00:00
Convert 8-bit PNG & GIF alpha channels to /SMasks in PDF

Yeah, I saw that too. To me it sounds like some ultra-esoteric use case, i.e. you use palletted color, but a full resolution alpha channel... I wouldn't really bother supporting it.

So, the answer…

tzahola commented on pull request josch/img2pdf#106 2021-07-11 19:10:13 +00:00
Convert 8-bit PNG & GIF alpha channels to /SMasks in PDF

In case @josch decides to merge this PR, how would I detect whether img2pdf can handle the image, or whether the alpha channel would still need to be removed? (Currently I just check if the…

tzahola pushed to png-alpha-to-smask at tzahola/img2pdf 2021-07-11 19:00:08 +00:00
6e6987c982 Test cases for transparency
18c8825f41 Test support on macOS
9299ba8f33 Always initialize smask
6310ca0dee Formatting
0d90ec6768 Use PNG predictor for /SMask too
Compare 16 commits »
tzahola pushed to png-alpha-to-smask at tzahola/img2pdf 2021-07-11 18:56:21 +00:00
6fbb6cd60d Merge branch 'main' into png-alpha-to-smask
91e3a94c3d sort globbing result on windows
Compare 2 commits »
tzahola commented on pull request josch/img2pdf#106 2021-06-19 20:35:56 +00:00
Convert 8-bit PNG & GIF alpha channels to /SMasks in PDF

I am wondering whether converting to RGBA is really lossless? I know very little about images...

else:
  newcolor = Colorspace.RGBA
  r, g, b, a =
tzahola pushed to png-alpha-to-smask at tzahola/img2pdf 2021-06-19 16:54:40 +00:00
8dac6242fc Test cases for transparency
9cd5121477 Test support on macOS
6516339ae3 Always initialize smask
Compare 3 commits »
tzahola commented on pull request josch/img2pdf#106 2021-06-19 16:38:16 +00:00
Convert 8-bit PNG & GIF alpha channels to /SMasks in PDF

I'm writing some test cases, and noticed that most of them are disabled on macOS. I've tried enabling them, and with a few exceptions they worked fine (given that the dependencies were installed via…

tzahola pushed to png-alpha-to-smask at tzahola/img2pdf 2021-06-18 23:29:00 +00:00
7e3b5ef0fb Formatting
tzahola commented on pull request josch/img2pdf#106 2021-06-18 23:21:26 +00:00
Convert 8-bit PNG & GIF alpha channels to /SMasks in PDF

Tweaked the code a bit, and added support for transparent GIFs, and grayscale + alpha PNGs. Also, both the SMask and the RGB part uses the PNG predictor.

tzahola pushed to png-alpha-to-smask at tzahola/img2pdf 2021-06-18 23:20:22 +00:00
0ff4925909 Use PNG predictor for /SMask too
tzahola pushed to png-alpha-to-smask at tzahola/img2pdf 2021-06-18 23:09:43 +00:00
e2aa5e5aca Merge branch 'main' into png-alpha-to-smask
3d7e0e6812 allow palette PNG images with ICC profile (closes: #107)
Compare 2 commits »
tzahola pushed to png-alpha-to-smask at tzahola/img2pdf 2021-06-18 23:08:35 +00:00
8839129d6b Added transparency support for GIFs, palette-based PNGs and grayscale PNGs