title: Wideimage Apply Mask
body: <p>Anyone having a problem using applyMask method in <a href="http://wideimage.sourceforge.net/" rel="nofollow">WideImage</a> library for PHP?</p>
  
  <p>This is the code I have and it seems it should be pretty straightforward but it's not working.</p>
  
  <pre><code>$image = WideImage::load($tempfile);
  $mask = dirname(__FILE__)."/../images/okvircki.png";
  $mask_wi = WideImage::load($mask);
  
  $image-&gt;applyMask($mask_wi,0,0);
  $image-&gt;saveToFile('image_egg.png');
  </code></pre>
  
  <p>$tempfile is a JPG and $mask a greyscale PNG. The end result is the same as tempfile img.</p>
  
  <p>Any ideas?</p>