title: What Conditions Make A Minecraft Hat Transparent
body: <p>Basically I'm writing a PHP script that displays a Minecraft skin. I understand that the only part of a Minecraft skin that's able to be transparent is the Mask overlay area, or "Hat". The script works great until I reach a skin like Notch's (creator of Minecraft) who has an all black background besides the main body parts. I know that solid black (#000000) can't be a transparency key because I've seen instances where the skin has a black part on the mask, but still transparency. Also, when I open up my personal skin in Photoshop the background area is almost black - #101010 which is RGB(16, 16, 16), but still appears transparent in game. My question is how can I determine if a pixel is transparent for the hat? I may be over thinking this. </p>
  
  <p>Here's Notch's Skin - <img src="https://i.stack.imgur.com/geUbg.png" alt=""></p>
  
  <p>Mine - <img src="https://i.stack.imgur.com/eGv9y.png" alt="enter image description here"></p>
  
  <p>Mine in Photoshop - <img src="https://i.stack.imgur.com/gFBJh.png" alt=""></p>
  
  <p>Could I be wrong about the black transparency key?</p>