Skip to content

Instantly share code, notes, and snippets.

/code Secret

Created May 11, 2011 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/19fa2e75bae15c83c7d9 to your computer and use it in GitHub Desktop.
Save anonymous/19fa2e75bae15c83c7d9 to your computer and use it in GitHub Desktop.
$src = imagecreatefrompng( 'pic.png' );
$dst = imagecreatefrompng( 'back.png' );
imagecopy( $dst, $src, 10, 10, 0, 0, 0, 0, 150, 180 );
header( 'Content-type: image/png' );
imagepng( $dst );
imagedestroy( $src );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment