PHP GD Use one image to mask another image, including transparency
Matt, If you make your png with the oval white fill on black background instead of black fill with transparent background the following function does it. <?php // Load source and mask $source = imagecreatefrompng( ‘1.png’ ); $mask = imagecreatefrompng( ‘2.png’ ); // Apply mask to source imagealphamask( $source, $mask ); // Output header( “Content-type: … Read more