• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Alpha channels in a PNG file

New Here ,
Dec 14, 2005 Dec 14, 2005

Copy link to clipboard

Copied

I' am new to the PNG file format, but we would like to use it on a project I' am working on due to the size of the file on disk. But the problem is that we need an alpha channel in the file. I know that Photoshop CS displays the image with transparency but it has no alpha channel this is no good for us. Are there any plugins out there that allow Photoshop to do this.

Thanks
Nigel.
TOPICS
SDK

Views

559

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Aug 02, 2007 Aug 02, 2007

Copy link to clipboard

Copied

Hi All,

I want to change the transparency of the PNG image, for that I gone through the document which say that, after changing the tRNS chunk of the PNG datastream we can change the transparency of the PNG image.

But after changing the 4 bytes of the tRNS chunk I can't get the transparency.

So any body can me to solve this Problem or suggest any other method to change the transparency.

regards,
krmlkr

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 02, 2007 Aug 02, 2007

Copy link to clipboard

Copied

Use libpng. For code relevant to alpha, see my psdparse or icoformat. It sounds like you're not correctly setting color_type.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 02, 2007 Aug 02, 2007

Copy link to clipboard

Copied

Thank you for your response.
I am trying to change the transparency of image in buffer by just changing the "tRNS chunk" from the data stream of PNG image.
Is it possible to do so ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 04, 2007 Aug 04, 2007

Copy link to clipboard

Copied

LATEST
If you're hand-rolling your own PNG code, then you're on your own. My advice is to use libpng.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines