Skip navigation
shanahan3030
Currently Being Moderated

Issue with layer masked PNG

Sep 16, 2012 1:42 PM

Tags: #png #transparency #layer_mask

I'm wondering how PhotoShop modifies a file that's had a layer mask applied to it, because I'm having a peculiar problem with layer masked images. I ran the following test because I needed to mask an image my sister sent me, & the image was getting messed up when it was scaled on her website:

 

I created 2 PNGs.

 

(1) With one, I created at a black & white image & then replace the white with transparency by applying a layer mask.

(2) For the other, I started with a transparent background & added black. No layer mask.

 

When I open the image which had a layer mask applied (1) in one of the other programs on my computer, the mask is inverted! All the white from the original image shows, & the black is now transparent. That makes me think the layer mask is stored somehow in the PNG file. And it has a different problem when her websote scales it - it turns solid gray.

 

I don't have any problems whatsoever with the image that wasn't created with a mask (2).

 

Unfortunately, with the image my sister sent me, I don't have the option to start over with a transparent BG, & don't want to cut out the background because I'm trying not to lose the partialy transparent pixels, or leave pixels that have the orginal background partially showing through.

 

What can I do so that the PNG file created by applying a mask stores what I see, and doesn't need to store the layer mask?

 

I'm using Adobe CS5, version 12.02, on Mac OS X 10.6.

 
Replies
  • Currently Being Moderated
    Sep 16, 2012 2:39 PM   in reply to shanahan3030

    Quick solution, save it as a TGA and preserve the transparency, or choose 32 bit TGA, what ever option you get in the other app.  Then photoshop will open it properly.

     

     

    Actuallty scratch what I said, I am backwards in my thinking.

     

     

    What app is she using? Gimp by chance or some other app. Does it have the ability to save the image as a photshop file format .PSD?  If so you may want to do that.

     

    Masks are sometimes not saved properly on PNG's since they cant handle layers.

     

    A potential solutions.

     

    With the mask applied do a copy and paste into a new image. In the new image you will have it no longer masked but only the visible portion of the original image is saved, then save that as a PNG.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 16, 2012 2:44 PM   in reply to shanahan3030

    PNG files can't store layer masks, just simple transparency.

    But it sounds like one of your programs does not read PNG transparency correctly.

    And some web browsers (esp. older versions of IE) can't render PNG transparency.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 16, 2012 5:31 PM   in reply to shanahan3030

    No issue with grayscale transparency, Transparency cant be saved on a grayscale image, there is only black and white and shades of gray.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points