Tamás Zahola tzahola
  • Joined on

tzahola commented on pull request josch/img2pdf#106

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:

3 years ago

tzahola commented on pull request josch/img2pdf#106

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. > >…

3 years ago

tzahola pushed to png-alpha-to-smask at tzahola/img2pdf

3 years ago

tzahola closed issue tzahola/img2pdf#4

How does a cash app work to provide a hassle-free platform to people?

3 years ago

tzahola closed issue tzahola/img2pdf#3

Is Visiting Cash.app/help Beneficial In Fixing All Your Problems?

3 years ago

tzahola closed issue tzahola/img2pdf#2

Amazing vitality of Cash app Support:

3 years ago

tzahola closed issue tzahola/img2pdf#1

Essential features of cash app Support phone number:

3 years ago

tzahola commented on pull request josch/img2pdf#106

Convert 8-bit PNG & GIF alpha channels to /SMasks in PDF

No worries! :) Congratulations! 👶

3 years ago

tzahola commented on pull request josch/img2pdf#106

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…

3 years ago

tzahola commented on pull request josch/img2pdf#106

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…

3 years ago

tzahola pushed to png-alpha-to-smask at tzahola/img2pdf

3 years ago

tzahola pushed to png-alpha-to-smask at tzahola/img2pdf

3 years ago

tzahola commented on pull request josch/img2pdf#106

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... > > ```python > else: > newcolor = Colorspace.RGBA > r, g, b, a =…

3 years ago

tzahola pushed to png-alpha-to-smask at tzahola/img2pdf

3 years ago

tzahola commented on pull request josch/img2pdf#106

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…

3 years ago

tzahola pushed to png-alpha-to-smask at tzahola/img2pdf

3 years ago

tzahola commented on pull request josch/img2pdf#106

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.

3 years ago

tzahola pushed to png-alpha-to-smask at tzahola/img2pdf

3 years ago

tzahola pushed to png-alpha-to-smask at tzahola/img2pdf

3 years ago

tzahola pushed to png-alpha-to-smask at tzahola/img2pdf

  • 8839129d6b Added transparency support for GIFs, palette-based PNGs and grayscale PNGs

3 years ago